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

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

Issue 16573003: Remove content/browser dependency on WebKit::WebIDBCallbacks and WebKit::WebIDBDatabaseCallbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix namespace issues Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BROWSER_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_WEBIDBFACTORY_IMPL_H_
6 #define CONTENT_BROWSER_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ 6 #define CONTENT_BROWSER_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/WebIDBFactory.h" 9
10 namespace WebKit {
11 class WebString;
12 }
10 13
11 namespace content { 14 namespace content {
12 15
13 class IndexedDBFactory; 16 class IndexedDBFactory;
17 class IndexedDBCallbacksBase;
18 class IndexedDBDatabaseCallbacks;
14 19
15 class WebIDBFactoryImpl : public WebKit::WebIDBFactory { 20 class WebIDBFactoryImpl {
16 public: 21 public:
17 WebIDBFactoryImpl(); 22 WebIDBFactoryImpl();
18 virtual ~WebIDBFactoryImpl(); 23 virtual ~WebIDBFactoryImpl();
19 24
20 virtual void getDatabaseNames(WebKit::WebIDBCallbacks* callbacks, 25 virtual void getDatabaseNames(IndexedDBCallbacksBase* callbacks,
21 const WebKit::WebString& database_identifier, 26 const WebKit::WebString& database_identifier,
22 const WebKit::WebString& data_dir); 27 const WebKit::WebString& data_dir);
23 virtual void open(const WebKit::WebString& name, 28 virtual void open(const WebKit::WebString& name,
24 long long version, 29 long long version,
25 long long transaction_id, 30 long long transaction_id,
26 WebKit::WebIDBCallbacks* callbacks, 31 IndexedDBCallbacksBase* callbacks,
27 WebKit::WebIDBDatabaseCallbacks* database_callbacks, 32 IndexedDBDatabaseCallbacks* database_callbacks,
28 const WebKit::WebString& database_identifier, 33 const WebKit::WebString& database_identifier,
29 const WebKit::WebString& data_dir); 34 const WebKit::WebString& data_dir);
30 virtual void deleteDatabase(const WebKit::WebString& name, 35 virtual void deleteDatabase(const WebKit::WebString& name,
31 WebKit::WebIDBCallbacks* callbacks, 36 IndexedDBCallbacksBase* callbacks,
32 const WebKit::WebString& database_identifier, 37 const WebKit::WebString& database_identifier,
33 const WebKit::WebString& data_dir); 38 const WebKit::WebString& data_dir);
34 39
35 private: 40 private:
36 scoped_refptr<IndexedDBFactory> idb_factory_backend_; 41 scoped_refptr<IndexedDBFactory> idb_factory_backend_;
37 }; 42 };
38 43
39 } // namespace content 44 } // namespace content
40 45
41 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ 46 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBFACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/webidbdatabase_impl.cc ('k') | content/browser/indexed_db/webidbfactory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698