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

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

Issue 17915004: IndexedDB: Remove uses of WebKit API types from back-end code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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" 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 {
14 class WebIDBDatabaseError;
15 class WebIDBDatabaseMetadata;
16 }
17
18 namespace content { 13 namespace content {
19 class IndexedDBCallbacksBase; 14 class IndexedDBCallbacksBase;
20 class IndexedDBDatabase; 15 class IndexedDBDatabase;
21 class IndexedDBDatabaseCallbacks; 16 class IndexedDBDatabaseCallbacks;
22 class IndexedDBDatabaseCallbacksWrapper; 17 class IndexedDBDatabaseCallbacksWrapper;
18 class IndexedDBDatabaseError;
23 19
24 class CONTENT_EXPORT WebIDBDatabaseImpl { 20 class CONTENT_EXPORT WebIDBDatabaseImpl {
25 public: 21 public:
26 WebIDBDatabaseImpl( 22 WebIDBDatabaseImpl(
27 scoped_refptr<IndexedDBDatabase> db, 23 scoped_refptr<IndexedDBDatabase> db,
28 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> callbacks); 24 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> callbacks);
29 virtual ~WebIDBDatabaseImpl(); 25 virtual ~WebIDBDatabaseImpl();
30 26
31 typedef std::vector<IndexedDBKey> IndexKeys; 27 typedef std::vector<IndexedDBKey> IndexKeys;
32 28
33 virtual void createObjectStore(long long transaction_id, 29 virtual void createObjectStore(long long transaction_id,
34 long long object_store_id, 30 long long object_store_id,
35 const WebKit::WebString& name, 31 const string16& name,
36 const IndexedDBKeyPath& key_path, 32 const IndexedDBKeyPath& key_path,
37 bool auto_increment); 33 bool auto_increment);
38 virtual void deleteObjectStore(long long object_store_id, 34 virtual void deleteObjectStore(long long object_store_id,
39 long long transaction_id); 35 long long transaction_id);
40 virtual void createTransaction(long long id, 36 virtual void createTransaction(long long id,
41 IndexedDBDatabaseCallbacks* callbacks, 37 IndexedDBDatabaseCallbacks* callbacks,
42 const std::vector<int64>& scope, 38 const std::vector<int64>& scope,
43 unsigned short mode); 39 unsigned short mode);
44 virtual void forceClose(); 40 virtual void forceClose();
45 virtual void close(); 41 virtual void close();
46 virtual void abort(long long transaction_id); 42 virtual void abort(long long transaction_id);
47 virtual void abort(long long transaction_id, 43 virtual void abort(long long transaction_id,
48 const WebKit::WebIDBDatabaseError& error); 44 const IndexedDBDatabaseError& error);
49 virtual void commit(long long transaction_id); 45 virtual void commit(long long transaction_id);
50 46
51 virtual void get(long long transaction_id, 47 virtual void get(long long transaction_id,
52 long long object_store_id, 48 long long object_store_id,
53 long long index_id, 49 long long index_id,
54 const IndexedDBKeyRange& range, 50 const IndexedDBKeyRange& range,
55 bool key_only, 51 bool key_only,
56 IndexedDBCallbacksBase* callbacks); 52 IndexedDBCallbacksBase* callbacks);
57 virtual void put(long long transaction_id, 53 virtual void put(long long transaction_id,
58 long long object_store_id, 54 long long object_store_id,
(...skipping 28 matching lines...) Expand all
87 long long object_store_id, 83 long long object_store_id,
88 const IndexedDBKeyRange& range, 84 const IndexedDBKeyRange& range,
89 IndexedDBCallbacksBase* callbacks); 85 IndexedDBCallbacksBase* callbacks);
90 virtual void clear(long long transaction_id, 86 virtual void clear(long long transaction_id,
91 long long object_store_id, 87 long long object_store_id,
92 IndexedDBCallbacksBase* callbacks); 88 IndexedDBCallbacksBase* callbacks);
93 89
94 virtual void createIndex(long long transaction_id, 90 virtual void createIndex(long long transaction_id,
95 long long object_store_id, 91 long long object_store_id,
96 long long index_id, 92 long long index_id,
97 const WebKit::WebString& name, 93 const string16& name,
98 const IndexedDBKeyPath& key_path, 94 const IndexedDBKeyPath& key_path,
99 bool unique, 95 bool unique,
100 bool multi_entry); 96 bool multi_entry);
101 virtual void deleteIndex(long long transaction_id, 97 virtual void deleteIndex(long long transaction_id,
102 long long object_store_id, 98 long long object_store_id,
103 long long index_id); 99 long long index_id);
104 100
105 private: 101 private:
106 scoped_refptr<IndexedDBDatabase> database_backend_; 102 scoped_refptr<IndexedDBDatabase> database_backend_;
107 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_; 103 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_;
108 }; 104 };
109 105
110 } // namespace content 106 } // namespace content
111 107
112 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBDATABASE_IMPL_H_ 108 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBDATABASE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_internals_ui.cc ('k') | content/browser/indexed_db/webidbdatabase_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698