OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ | |
6 #define CONTENT_BROWSER_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ | |
7 | |
8 #include "base/memory/ref_counted.h" | |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBFactory.h" | |
10 | |
11 namespace content { | |
12 | |
13 class IndexedDBFactory; | |
14 | |
15 class WebIDBFactoryImpl : public WebKit::WebIDBFactory { | |
16 public: | |
17 WebIDBFactoryImpl(); | |
18 virtual ~WebIDBFactoryImpl(); | |
19 | |
20 virtual void getDatabaseNames(WebKit::WebIDBCallbacks* callbacks, | |
21 const WebKit::WebString& database_identifier, | |
22 const WebKit::WebString& data_dir); | |
23 virtual void open(const WebKit::WebString& name, | |
24 long long version, | |
25 long long transaction_id, | |
26 WebKit::WebIDBCallbacks* callbacks, | |
27 WebKit::WebIDBDatabaseCallbacks* database_callbacks, | |
28 const WebKit::WebString& database_identifier, | |
29 const WebKit::WebString& data_dir); | |
30 virtual void deleteDatabase(const WebKit::WebString& name, | |
31 WebKit::WebIDBCallbacks* callbacks, | |
32 const WebKit::WebString& database_identifier, | |
33 const WebKit::WebString& data_dir); | |
34 | |
35 private: | |
36 scoped_refptr<IndexedDBFactory> idb_factory_backend_; | |
37 }; | |
38 | |
39 } // namespace content | |
40 | |
41 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBFACTORY_IMPL_H_ | |
OLD | NEW |