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_WEBIDBDATABASE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ |
6 #define CONTENT_BROWSER_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "content/browser/indexed_db/indexed_db_database.h" | 9 #include "content/browser/indexed_db/indexed_db_database.h" |
10 #include "content/browser/indexed_db/indexed_db_database_callbacks_wrapper.h" | 10 #include "content/browser/indexed_db/indexed_db_database_callbacks_wrapper.h" |
11 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" | 11 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" |
12 | 12 |
13 namespace WebKit { | 13 namespace WebKit { |
14 class WebIDBDatabaseCallbacks; | 14 class WebIDBDatabaseCallbacks; |
15 class WebIDBDatabaseError; | 15 class WebIDBDatabaseError; |
16 class WebIDBDatabaseMetadata; | 16 class WebIDBDatabaseMetadata; |
17 } | 17 } |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class IndexedDBDatabase; | 20 class IndexedDBDatabase; |
21 class IndexedDBDatabaseCallbacksWrapper; | 21 class IndexedDBDatabaseCallbacksWrapper; |
22 | 22 |
23 // See comment in WebIDBFactory for a high level overview these classes. | 23 // See comment in WebIDBFactory for a high level overview these classes. |
24 class WebIDBDatabaseImpl : public WebKit::WebIDBDatabase { | 24 class CONTENT_EXPORT WebIDBDatabaseImpl |
| 25 : NON_EXPORTED_BASE(public WebKit::WebIDBDatabase) { |
25 public: | 26 public: |
26 WebIDBDatabaseImpl( | 27 WebIDBDatabaseImpl( |
27 scoped_refptr<IndexedDBDatabase> db, | 28 scoped_refptr<IndexedDBDatabase> db, |
28 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> callbacks); | 29 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> callbacks); |
29 virtual ~WebIDBDatabaseImpl(); | 30 virtual ~WebIDBDatabaseImpl(); |
30 | 31 |
31 virtual void createObjectStore(long long transaction_id, | 32 virtual void createObjectStore(long long transaction_id, |
32 long long object_store_id, | 33 long long object_store_id, |
33 const WebKit::WebString& name, | 34 const WebKit::WebString& name, |
34 const WebKit::WebIDBKeyPath& key_path, | 35 const WebKit::WebIDBKeyPath& key_path, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 long long index_id); | 102 long long index_id); |
102 | 103 |
103 private: | 104 private: |
104 scoped_refptr<IndexedDBDatabase> database_backend_; | 105 scoped_refptr<IndexedDBDatabase> database_backend_; |
105 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_; | 106 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_; |
106 }; | 107 }; |
107 | 108 |
108 } // namespace content | 109 } // namespace content |
109 | 110 |
110 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ | 111 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ |
OLD | NEW |