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

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

Issue 18224002: IndexedDB: Eliminate IndexedDBDatabaseCallbacksWrapper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include fix for win Created 7 years, 5 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_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"
11 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" 10 #include "third_party/WebKit/public/platform/WebIDBDatabase.h"
12 11
13 namespace content { 12 namespace content {
14 class IndexedDBCallbacksBase; 13 class IndexedDBCallbacksBase;
15 class IndexedDBDatabase; 14 class IndexedDBDatabase;
16 class IndexedDBDatabaseCallbacks; 15 class IndexedDBDatabaseCallbacks;
17 class IndexedDBDatabaseCallbacksWrapper;
18 class IndexedDBDatabaseError; 16 class IndexedDBDatabaseError;
19 17
20 class CONTENT_EXPORT WebIDBDatabaseImpl { 18 class CONTENT_EXPORT WebIDBDatabaseImpl {
21 public: 19 public:
22 WebIDBDatabaseImpl( 20 WebIDBDatabaseImpl(
23 scoped_refptr<IndexedDBDatabase> db, 21 scoped_refptr<IndexedDBDatabase> db,
24 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> callbacks); 22 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks);
25 virtual ~WebIDBDatabaseImpl(); 23 virtual ~WebIDBDatabaseImpl();
26 24
27 typedef std::vector<IndexedDBKey> IndexKeys; 25 typedef std::vector<IndexedDBKey> IndexKeys;
28 26
29 virtual void createObjectStore(long long transaction_id, 27 virtual void createObjectStore(long long transaction_id,
30 long long object_store_id, 28 long long object_store_id,
31 const string16& name, 29 const string16& name,
32 const IndexedDBKeyPath& key_path, 30 const IndexedDBKeyPath& key_path,
33 bool auto_increment); 31 bool auto_increment);
34 virtual void deleteObjectStore(long long object_store_id, 32 virtual void deleteObjectStore(long long object_store_id,
35 long long transaction_id); 33 long long transaction_id);
36 virtual void createTransaction(long long id, 34 virtual void createTransaction(long long id,
37 IndexedDBDatabaseCallbacks* callbacks,
38 const std::vector<int64>& scope, 35 const std::vector<int64>& scope,
39 unsigned short mode); 36 unsigned short mode);
40 virtual void forceClose(); 37 virtual void forceClose();
41 virtual void close(); 38 virtual void close();
42 virtual void abort(long long transaction_id); 39 virtual void abort(long long transaction_id);
43 virtual void abort(long long transaction_id, 40 virtual void abort(long long transaction_id,
44 const IndexedDBDatabaseError& error); 41 const IndexedDBDatabaseError& error);
45 virtual void commit(long long transaction_id); 42 virtual void commit(long long transaction_id);
46 43
47 virtual void get(long long transaction_id, 44 virtual void get(long long transaction_id,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 const string16& name, 90 const string16& name,
94 const IndexedDBKeyPath& key_path, 91 const IndexedDBKeyPath& key_path,
95 bool unique, 92 bool unique,
96 bool multi_entry); 93 bool multi_entry);
97 virtual void deleteIndex(long long transaction_id, 94 virtual void deleteIndex(long long transaction_id,
98 long long object_store_id, 95 long long object_store_id,
99 long long index_id); 96 long long index_id);
100 97
101 private: 98 private:
102 scoped_refptr<IndexedDBDatabase> database_backend_; 99 scoped_refptr<IndexedDBDatabase> database_backend_;
103 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_; 100 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks_;
104 }; 101 };
105 102
106 } // namespace content 103 } // namespace content
107 104
108 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ 105 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBDATABASE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_transaction.cc ('k') | content/browser/indexed_db/webidbdatabase_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698