OLD | NEW |
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 | 9 #include "base/strings/string16.h" |
10 namespace WebKit { | |
11 class WebString; | |
12 } | |
13 | 10 |
14 namespace content { | 11 namespace content { |
15 | 12 |
16 class IndexedDBFactory; | 13 class IndexedDBFactory; |
17 class IndexedDBCallbacksBase; | 14 class IndexedDBCallbacksBase; |
18 class IndexedDBDatabaseCallbacks; | 15 class IndexedDBDatabaseCallbacks; |
19 | 16 |
20 class WebIDBFactoryImpl { | 17 class WebIDBFactoryImpl { |
21 public: | 18 public: |
22 WebIDBFactoryImpl(); | 19 WebIDBFactoryImpl(); |
23 virtual ~WebIDBFactoryImpl(); | 20 virtual ~WebIDBFactoryImpl(); |
24 | 21 |
25 virtual void getDatabaseNames(IndexedDBCallbacksBase* callbacks, | 22 virtual void getDatabaseNames(IndexedDBCallbacksBase* callbacks, |
26 const WebKit::WebString& database_identifier, | 23 const string16& database_identifier, |
27 const WebKit::WebString& data_dir); | 24 const string16& data_dir); |
28 virtual void open(const WebKit::WebString& name, | 25 virtual void open(const string16& name, |
29 long long version, | 26 long long version, |
30 long long transaction_id, | 27 long long transaction_id, |
31 IndexedDBCallbacksBase* callbacks, | 28 IndexedDBCallbacksBase* callbacks, |
32 IndexedDBDatabaseCallbacks* database_callbacks, | 29 IndexedDBDatabaseCallbacks* database_callbacks, |
33 const WebKit::WebString& database_identifier, | 30 const string16& database_identifier, |
34 const WebKit::WebString& data_dir); | 31 const string16& data_dir); |
35 virtual void deleteDatabase(const WebKit::WebString& name, | 32 virtual void deleteDatabase(const string16& name, |
36 IndexedDBCallbacksBase* callbacks, | 33 IndexedDBCallbacksBase* callbacks, |
37 const WebKit::WebString& database_identifier, | 34 const string16& database_identifier, |
38 const WebKit::WebString& data_dir); | 35 const string16& data_dir); |
39 | 36 |
40 private: | 37 private: |
41 scoped_refptr<IndexedDBFactory> idb_factory_backend_; | 38 scoped_refptr<IndexedDBFactory> idb_factory_backend_; |
42 }; | 39 }; |
43 | 40 |
44 } // namespace content | 41 } // namespace content |
45 | 42 |
46 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ | 43 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ |
OLD | NEW |