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

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

Issue 197753011: Add IndexedDBValue wrapper class to group blob info with bits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed a bit of extra blob_info stuff that leaked in. Created 6 years, 9 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_INDEXED_DB_DATABASE_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 12 matching lines...) Expand all
23 23
24 namespace content { 24 namespace content {
25 25
26 class IndexedDBConnection; 26 class IndexedDBConnection;
27 class IndexedDBDatabaseCallbacks; 27 class IndexedDBDatabaseCallbacks;
28 class IndexedDBFactory; 28 class IndexedDBFactory;
29 class IndexedDBKey; 29 class IndexedDBKey;
30 class IndexedDBKeyPath; 30 class IndexedDBKeyPath;
31 class IndexedDBKeyRange; 31 class IndexedDBKeyRange;
32 class IndexedDBTransaction; 32 class IndexedDBTransaction;
33 struct IndexedDBValue;
33 34
34 class CONTENT_EXPORT IndexedDBDatabase 35 class CONTENT_EXPORT IndexedDBDatabase
35 : NON_EXPORTED_BASE(public base::RefCounted<IndexedDBDatabase>) { 36 : NON_EXPORTED_BASE(public base::RefCounted<IndexedDBDatabase>) {
36 public: 37 public:
37 enum TaskType { 38 enum TaskType {
38 NORMAL_TASK = 0, 39 NORMAL_TASK = 0,
39 PREEMPTIVE_TASK 40 PREEMPTIVE_TASK
40 }; 41 };
41 42
42 enum PutMode { 43 enum PutMode {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void TransactionCommitFailed(); 123 void TransactionCommitFailed();
123 124
124 void Get(int64 transaction_id, 125 void Get(int64 transaction_id,
125 int64 object_store_id, 126 int64 object_store_id,
126 int64 index_id, 127 int64 index_id,
127 scoped_ptr<IndexedDBKeyRange> key_range, 128 scoped_ptr<IndexedDBKeyRange> key_range,
128 bool key_only, 129 bool key_only,
129 scoped_refptr<IndexedDBCallbacks> callbacks); 130 scoped_refptr<IndexedDBCallbacks> callbacks);
130 void Put(int64 transaction_id, 131 void Put(int64 transaction_id,
131 int64 object_store_id, 132 int64 object_store_id,
132 std::string* value, 133 IndexedDBValue* value,
133 scoped_ptr<IndexedDBKey> key, 134 scoped_ptr<IndexedDBKey> key,
134 PutMode mode, 135 PutMode mode,
135 scoped_refptr<IndexedDBCallbacks> callbacks, 136 scoped_refptr<IndexedDBCallbacks> callbacks,
136 const std::vector<IndexKeys>& index_keys); 137 const std::vector<IndexKeys>& index_keys);
137 void SetIndexKeys(int64 transaction_id, 138 void SetIndexKeys(int64 transaction_id,
138 int64 object_store_id, 139 int64 object_store_id,
139 scoped_ptr<IndexedDBKey> primary_key, 140 scoped_ptr<IndexedDBKey> primary_key,
140 const std::vector<IndexKeys>& index_keys); 141 const std::vector<IndexKeys>& index_keys);
141 void SetIndexesReady(int64 transaction_id, 142 void SetIndexesReady(int64 transaction_id,
142 int64 object_store_id, 143 int64 object_store_id,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 typedef std::list<PendingDeleteCall*> PendingDeleteCallList; 293 typedef std::list<PendingDeleteCall*> PendingDeleteCallList;
293 PendingDeleteCallList pending_delete_calls_; 294 PendingDeleteCallList pending_delete_calls_;
294 295
295 typedef list_set<IndexedDBConnection*> ConnectionSet; 296 typedef list_set<IndexedDBConnection*> ConnectionSet;
296 ConnectionSet connections_; 297 ConnectionSet connections_;
297 }; 298 };
298 299
299 } // namespace content 300 } // namespace content
300 301
301 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 302 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698