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

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

Issue 232343004: Pass blob info through from the IPC to the backing store on put. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some nits Created 6 years, 8 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>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "content/browser/indexed_db/indexed_db.h" 16 #include "content/browser/indexed_db/indexed_db.h"
17 #include "content/browser/indexed_db/indexed_db_backing_store.h" 17 #include "content/browser/indexed_db/indexed_db_backing_store.h"
18 #include "content/browser/indexed_db/indexed_db_callbacks.h" 18 #include "content/browser/indexed_db/indexed_db_callbacks.h"
19 #include "content/browser/indexed_db/indexed_db_metadata.h" 19 #include "content/browser/indexed_db/indexed_db_metadata.h"
20 #include "content/browser/indexed_db/indexed_db_pending_connection.h" 20 #include "content/browser/indexed_db/indexed_db_pending_connection.h"
21 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" 21 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h"
22 #include "content/browser/indexed_db/list_set.h" 22 #include "content/browser/indexed_db/list_set.h"
23 #include "url/gurl.h" 23 #include "url/gurl.h"
24 24
25 namespace content { 25 namespace content {
26 26
27 class IndexedDBBlobInfo;
27 class IndexedDBConnection; 28 class IndexedDBConnection;
28 class IndexedDBDatabaseCallbacks; 29 class IndexedDBDatabaseCallbacks;
29 class IndexedDBFactory; 30 class IndexedDBFactory;
30 class IndexedDBKey; 31 class IndexedDBKey;
31 class IndexedDBKeyPath; 32 class IndexedDBKeyPath;
32 class IndexedDBKeyRange; 33 class IndexedDBKeyRange;
33 class IndexedDBTransaction; 34 class IndexedDBTransaction;
34 struct IndexedDBValue; 35 struct IndexedDBValue;
35 36
36 class CONTENT_EXPORT IndexedDBDatabase 37 class CONTENT_EXPORT IndexedDBDatabase
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 void Get(int64 transaction_id, 123 void Get(int64 transaction_id,
123 int64 object_store_id, 124 int64 object_store_id,
124 int64 index_id, 125 int64 index_id,
125 scoped_ptr<IndexedDBKeyRange> key_range, 126 scoped_ptr<IndexedDBKeyRange> key_range,
126 bool key_only, 127 bool key_only,
127 scoped_refptr<IndexedDBCallbacks> callbacks); 128 scoped_refptr<IndexedDBCallbacks> callbacks);
128 void Put(int64 transaction_id, 129 void Put(int64 transaction_id,
129 int64 object_store_id, 130 int64 object_store_id,
130 IndexedDBValue* value, 131 IndexedDBValue* value,
132 ScopedVector<webkit_blob::BlobDataHandle>* handles,
131 scoped_ptr<IndexedDBKey> key, 133 scoped_ptr<IndexedDBKey> key,
132 PutMode mode, 134 PutMode mode,
133 scoped_refptr<IndexedDBCallbacks> callbacks, 135 scoped_refptr<IndexedDBCallbacks> callbacks,
134 const std::vector<IndexKeys>& index_keys); 136 const std::vector<IndexKeys>& index_keys);
135 void SetIndexKeys(int64 transaction_id, 137 void SetIndexKeys(int64 transaction_id,
136 int64 object_store_id, 138 int64 object_store_id,
137 scoped_ptr<IndexedDBKey> primary_key, 139 scoped_ptr<IndexedDBKey> primary_key,
138 const std::vector<IndexKeys>& index_keys); 140 const std::vector<IndexKeys>& index_keys);
139 void SetIndexesReady(int64 transaction_id, 141 void SetIndexesReady(int64 transaction_id,
140 int64 object_store_id, 142 int64 object_store_id,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 typedef std::list<PendingDeleteCall*> PendingDeleteCallList; 293 typedef std::list<PendingDeleteCall*> PendingDeleteCallList;
292 PendingDeleteCallList pending_delete_calls_; 294 PendingDeleteCallList pending_delete_calls_;
293 295
294 typedef list_set<IndexedDBConnection*> ConnectionSet; 296 typedef list_set<IndexedDBConnection*> ConnectionSet;
295 ConnectionSet connections_; 297 ConnectionSet connections_;
296 }; 298 };
297 299
298 } // namespace content 300 } // namespace content
299 301
300 #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