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

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

Issue 15724006: Migrate IDBDatabaseBackendTest from blink to chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix exports for WebIDBDatabase too 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
« no previous file with comments | « content/browser/indexed_db/indexed_db_fake_backing_store.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_fake_backing_store.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698