mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Update to Chromium revision 138235.
- Move to the new DOM storage backend. Persistent localStorage support will need to be re-implemented (issue #603). - Add CefV8Value::CreateUInt method and indicate that integer types are 32bit via usage of int32 and uint32 types (issue #331). - Add CefV8Context::Eval method for synchronous JavaScript execution that returns a value or exception (issue #444). - Move exception handling from an ExecuteFunction argument to a CefV8Value attribute (issue #546). - Make user data an attribute for all CefV8Value object types and not just CreateObject (issue #547). - Un-fork SQLitePersistentCookieStore by adding stub implementations for sqlite_diagnostics and browser_thread. - Update tools/cef_parser.py to match the CEF3 version. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@644 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -7,7 +7,6 @@
|
||||
#include "libcef/browser_resource_loader_bridge.h"
|
||||
#include "libcef/browser_socket_stream_bridge.h"
|
||||
#include "libcef/browser_webkit_glue.h"
|
||||
#include "libcef/browser_webstoragenamespace_impl.h"
|
||||
#include "libcef/cef_context.h"
|
||||
|
||||
#include "base/metrics/stats_counters.h"
|
||||
@ -198,22 +197,7 @@ WebKit::WebString BrowserWebKitInit::defaultLocale() {
|
||||
|
||||
WebKit::WebStorageNamespace* BrowserWebKitInit::createLocalStorageNamespace(
|
||||
const WebKit::WebString& path, unsigned quota) {
|
||||
#ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
|
||||
NOTREACHED();
|
||||
#else
|
||||
return new BrowserWebStorageNamespaceImpl(DOM_STORAGE_LOCAL);
|
||||
#endif
|
||||
}
|
||||
|
||||
void BrowserWebKitInit::dispatchStorageEvent(const WebKit::WebString& key,
|
||||
const WebKit::WebString& old_value, const WebKit::WebString& new_value,
|
||||
const WebKit::WebString& origin, const WebKit::WebURL& url,
|
||||
bool is_local_storage) {
|
||||
// All events are dispatched by the WebCore::StorageAreaProxy in the
|
||||
// simple single process case.
|
||||
#ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
|
||||
NOTREACHED();
|
||||
#endif
|
||||
return dom_storage_system_.CreateLocalStorageNamespace();
|
||||
}
|
||||
|
||||
WebKit::WebIDBFactory* BrowserWebKitInit::idbFactory() {
|
||||
@ -222,13 +206,11 @@ WebKit::WebIDBFactory* BrowserWebKitInit::idbFactory() {
|
||||
|
||||
void BrowserWebKitInit::createIDBKeysFromSerializedValuesAndKeyPath(
|
||||
const WebKit::WebVector<WebKit::WebSerializedScriptValue>& values,
|
||||
const WebKit::WebString& keyPath,
|
||||
const WebKit::WebIDBKeyPath& keyPath,
|
||||
WebKit::WebVector<WebKit::WebIDBKey>& keys_out) {
|
||||
WebKit::WebVector<WebKit::WebIDBKey> keys(values.size());
|
||||
for (size_t i = 0; i < values.size(); ++i) {
|
||||
keys[i] = WebKit::WebIDBKey::createFromValueAndKeyPath(
|
||||
values[i], WebKit::WebIDBKeyPath::create(keyPath));
|
||||
}
|
||||
for (size_t i = 0; i < values.size(); ++i)
|
||||
keys[i] = WebKit::WebIDBKey::createFromValueAndKeyPath(values[i], keyPath);
|
||||
keys_out.swap(keys);
|
||||
}
|
||||
|
||||
@ -236,9 +218,9 @@ WebKit::WebSerializedScriptValue
|
||||
BrowserWebKitInit::injectIDBKeyIntoSerializedValue(
|
||||
const WebKit::WebIDBKey& key,
|
||||
const WebKit::WebSerializedScriptValue& value,
|
||||
const WebKit::WebString& keyPath) {
|
||||
const WebKit::WebIDBKeyPath& keyPath) {
|
||||
return WebKit::WebIDBKey::injectIDBKeyIntoSerializedValue(
|
||||
key, value, WebKit::WebIDBKeyPath::create(keyPath));
|
||||
key, value, keyPath);
|
||||
}
|
||||
|
||||
WebKit::WebGraphicsContext3D*
|
||||
@ -264,6 +246,11 @@ base::StringPiece BrowserWebKitInit::GetDataResource(int resource_id) {
|
||||
return _Context->GetDataResource(resource_id);
|
||||
}
|
||||
|
||||
base::StringPiece BrowserWebKitInit::GetImageResource(int resource_id,
|
||||
float scale_factor) {
|
||||
return GetDataResource(resource_id);
|
||||
}
|
||||
|
||||
webkit_glue::ResourceLoaderBridge* BrowserWebKitInit::CreateResourceLoader(
|
||||
const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) {
|
||||
return BrowserResourceLoaderBridge::Create(request_info);
|
||||
|
Reference in New Issue
Block a user