diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-13 16:23:34 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-14 10:37:21 +0000 |
commit | 38a9a29f4f9436cace7f0e7abf9c586057df8a4e (patch) | |
tree | c4e8c458dc595bc0ddb435708fa2229edfd00bd4 /chromium/third_party/blink/renderer/modules/indexeddb/web_idb_factory_impl.h | |
parent | e684a3455bcc29a6e3e66a004e352dea4e1141e7 (diff) | |
download | qtwebengine-chromium-38a9a29f4f9436cace7f0e7abf9c586057df8a4e.tar.gz |
BASELINE: Update Chromium to 73.0.3683.37
Change-Id: I08c9af2948b645f671e5d933aca1f7a90ea372f2
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/indexeddb/web_idb_factory_impl.h')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/indexeddb/web_idb_factory_impl.h | 56 |
1 files changed, 25 insertions, 31 deletions
diff --git a/chromium/third_party/blink/renderer/modules/indexeddb/web_idb_factory_impl.h b/chromium/third_party/blink/renderer/modules/indexeddb/web_idb_factory_impl.h index dbc69d838e3..692d92013b7 100644 --- a/chromium/third_party/blink/renderer/modules/indexeddb/web_idb_factory_impl.h +++ b/chromium/third_party/blink/renderer/modules/indexeddb/web_idb_factory_impl.h @@ -6,52 +6,46 @@ #define THIRD_PARTY_BLINK_RENDERER_MODULES_INDEXEDDB_WEB_IDB_FACTORY_IMPL_H_ #include "third_party/blink/public/mojom/indexeddb/indexeddb.mojom-blink.h" -#include "third_party/blink/public/platform/modules/indexeddb/web_idb_callbacks.h" -#include "third_party/blink/public/platform/modules/indexeddb/web_idb_database_callbacks.h" #include "third_party/blink/renderer/modules/indexeddb/idb_key_range.h" -#include "third_party/blink/renderer/modules/indexeddb/indexed_db_callbacks_impl.h" #include "third_party/blink/renderer/modules/indexeddb/indexed_db_database_callbacks_impl.h" +#include "third_party/blink/renderer/modules/indexeddb/web_idb_callbacks.h" +#include "third_party/blink/renderer/modules/indexeddb/web_idb_database_callbacks.h" #include "third_party/blink/renderer/modules/indexeddb/web_idb_factory.h" +namespace WTF { +class String; +} + namespace blink { -class WebSecurityOrigin; -class WebString; -class WebIDBFactoryImpl : public blink::WebIDBFactory { +class WebIDBFactoryImpl : public WebIDBFactory { public: - explicit WebIDBFactoryImpl(mojom::blink::IDBFactoryPtrInfo factory_info); + explicit WebIDBFactoryImpl( + mojom::blink::IDBFactoryPtrInfo factory_info, + scoped_refptr<base::SingleThreadTaskRunner> task_runner); ~WebIDBFactoryImpl() override; - // See WebIDBFactory.h for documentation on these functions. - void GetDatabaseInfo( - blink::WebIDBCallbacks* callbacks, - const blink::WebSecurityOrigin& origin, - scoped_refptr<base::SingleThreadTaskRunner> task_runner) override; - void GetDatabaseNames( - blink::WebIDBCallbacks* callbacks, - const blink::WebSecurityOrigin& origin, - scoped_refptr<base::SingleThreadTaskRunner> task_runner) override; - void Open(const blink::WebString& name, - long long version, - long long transaction_id, - blink::WebIDBCallbacks* callbacks, - blink::WebIDBDatabaseCallbacks* databaseCallbacks, - const blink::WebSecurityOrigin& origin, - scoped_refptr<base::SingleThreadTaskRunner> task_runner) override; - void DeleteDatabase( - const blink::WebString& name, - blink::WebIDBCallbacks* callbacks, - const blink::WebSecurityOrigin& origin, - bool force_close, - scoped_refptr<base::SingleThreadTaskRunner> task_runner) override; + // See web_idb_factory.h for documentation on these functions. + void GetDatabaseInfo(std::unique_ptr<WebIDBCallbacks> callbacks) override; + void GetDatabaseNames(std::unique_ptr<WebIDBCallbacks> callbacks) override; + void Open( + const WTF::String& name, + long long version, + long long transaction_id, + std::unique_ptr<WebIDBCallbacks> callbacks, + std::unique_ptr<WebIDBDatabaseCallbacks> database_callbacks) override; + void DeleteDatabase(const WTF::String& name, + std::unique_ptr<WebIDBCallbacks> callbacks, + bool force_close) override; private: mojom::blink::IDBCallbacksAssociatedPtrInfo GetCallbacksProxy( - std::unique_ptr<blink::IndexedDBCallbacksImpl> callbacks); + std::unique_ptr<WebIDBCallbacks> callbacks); mojom::blink::IDBDatabaseCallbacksAssociatedPtrInfo GetDatabaseCallbacksProxy( - std::unique_ptr<blink::IndexedDBDatabaseCallbacksImpl> callbacks); + std::unique_ptr<IndexedDBDatabaseCallbacksImpl> callbacks); mojom::blink::IDBFactoryPtr factory_; + scoped_refptr<base::SingleThreadTaskRunner> task_runner_; }; } // namespace blink |