Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: content/child/indexed_db/webidbfactory_impl.h

Issue 2320213004: Port IndexedDB open() and database callbacks to Mojo. (Closed)
Patch Set: Make DatabaseClient an associated interface. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ 5 #ifndef CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_
6 #define CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ 6 #define CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "third_party/WebKit/public/platform/WebVector.h" 9 #include "third_party/WebKit/public/platform/WebVector.h"
10 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h " 10 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h "
11 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCal lbacks.h"
12 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h" 11 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h"
13 12
14 namespace blink { 13 namespace blink {
15 class WebSecurityOrigin; 14 class WebSecurityOrigin;
16 class WebString; 15 class WebString;
17 } 16 }
18 17
19 namespace content { 18 namespace content {
20 class ThreadSafeSender; 19 class ThreadSafeSender;
21 20
22 class WebIDBFactoryImpl : public blink::WebIDBFactory { 21 class WebIDBFactoryImpl : public blink::WebIDBFactory {
23 public: 22 public:
24 explicit WebIDBFactoryImpl(ThreadSafeSender* thread_safe_sender); 23 explicit WebIDBFactoryImpl(ThreadSafeSender* thread_safe_sender);
25 ~WebIDBFactoryImpl() override; 24 ~WebIDBFactoryImpl() override;
26 25
27 // See WebIDBFactory.h for documentation on these functions. 26 // See WebIDBFactory.h for documentation on these functions.
28 void getDatabaseNames(blink::WebIDBCallbacks* callbacks, 27 void getDatabaseNames(blink::WebIDBCallbacks* callbacks,
29 const blink::WebSecurityOrigin& origin) override; 28 const blink::WebSecurityOrigin& origin) override;
30 void open(const blink::WebString& name, 29 void open(const blink::WebString& name,
31 long long version, 30 long long version,
32 long long transaction_id, 31 long long transaction_id,
33 blink::WebIDBCallbacks* callbacks, 32 blink::WebIDBCallbacks* callbacks,
34 blink::WebIDBDatabaseCallbacks* databaseCallbacks, 33 mojo::ScopedInterfaceEndpointHandle* client_interface_endpoint,
35 const blink::WebSecurityOrigin& origin) override; 34 const blink::WebSecurityOrigin& origin) override;
36 void deleteDatabase(const blink::WebString& name, 35 void deleteDatabase(const blink::WebString& name,
37 blink::WebIDBCallbacks* callbacks, 36 blink::WebIDBCallbacks* callbacks,
38 const blink::WebSecurityOrigin& origin) override; 37 const blink::WebSecurityOrigin& origin) override;
39 38
40 private: 39 private:
41 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 40 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
42 }; 41 };
43 42
44 } // namespace content 43 } // namespace content
45 44
46 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ 45 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl.cc ('k') | content/child/indexed_db/webidbfactory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698