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

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

Issue 2500263003: Port messages sent by WebIDBCursorImpl to Mojo. (Closed)
Patch Set: Address dcheng@'s comments. Created 4 years 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 "content/common/indexed_db/indexed_db.mojom.h" 9 #include "content/common/indexed_db/indexed_db.mojom.h"
10 #include "third_party/WebKit/public/platform/WebVector.h" 10 #include "third_party/WebKit/public/platform/WebVector.h"
11 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h " 11 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h "
12 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCal lbacks.h" 12 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCal lbacks.h"
13 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h" 13 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h"
14 14
15 namespace blink { 15 namespace blink {
16 class WebSecurityOrigin; 16 class WebSecurityOrigin;
17 class WebString; 17 class WebString;
18 } 18 }
19 19
20 namespace IPC { 20 namespace IPC {
21 class SyncMessageFilter; 21 class SyncMessageFilter;
22 } 22 }
23 23
24 namespace content { 24 namespace content {
25 class ThreadSafeSender;
26 25
27 class WebIDBFactoryImpl : public blink::WebIDBFactory { 26 class WebIDBFactoryImpl : public blink::WebIDBFactory {
28 public: 27 public:
29 WebIDBFactoryImpl(scoped_refptr<IPC::SyncMessageFilter> sync_message_filter, 28 WebIDBFactoryImpl(scoped_refptr<IPC::SyncMessageFilter> sync_message_filter,
30 scoped_refptr<ThreadSafeSender> thread_safe_sender,
31 scoped_refptr<base::SingleThreadTaskRunner> io_runner); 29 scoped_refptr<base::SingleThreadTaskRunner> io_runner);
32 ~WebIDBFactoryImpl() override; 30 ~WebIDBFactoryImpl() override;
33 31
34 // See WebIDBFactory.h for documentation on these functions. 32 // See WebIDBFactory.h for documentation on these functions.
35 void getDatabaseNames(blink::WebIDBCallbacks* callbacks, 33 void getDatabaseNames(blink::WebIDBCallbacks* callbacks,
36 const blink::WebSecurityOrigin& origin) override; 34 const blink::WebSecurityOrigin& origin) override;
37 void open(const blink::WebString& name, 35 void open(const blink::WebString& name,
38 long long version, 36 long long version,
39 long long transaction_id, 37 long long transaction_id,
40 blink::WebIDBCallbacks* callbacks, 38 blink::WebIDBCallbacks* callbacks,
41 blink::WebIDBDatabaseCallbacks* databaseCallbacks, 39 blink::WebIDBDatabaseCallbacks* databaseCallbacks,
42 const blink::WebSecurityOrigin& origin) override; 40 const blink::WebSecurityOrigin& origin) override;
43 void deleteDatabase(const blink::WebString& name, 41 void deleteDatabase(const blink::WebString& name,
44 blink::WebIDBCallbacks* callbacks, 42 blink::WebIDBCallbacks* callbacks,
45 const blink::WebSecurityOrigin& origin) override; 43 const blink::WebSecurityOrigin& origin) override;
46 44
47 private: 45 private:
48 class IOThreadHelper; 46 class IOThreadHelper;
49 47
50 IOThreadHelper* io_helper_; 48 IOThreadHelper* io_helper_;
51 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
52 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; 49 scoped_refptr<base::SingleThreadTaskRunner> io_runner_;
53 }; 50 };
54 51
55 } // namespace content 52 } // namespace content
56 53
57 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ 54 #endif // CONTENT_CHILD_INDEXED_DB_WEBIDBFACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl_unittest.cc ('k') | content/child/indexed_db/webidbfactory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698