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

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: Merge out 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 123
123 void Get(int64 transaction_id, 124 void Get(int64 transaction_id,
124 int64 object_store_id, 125 int64 object_store_id,
125 int64 index_id, 126 int64 index_id,
126 scoped_ptr<IndexedDBKeyRange> key_range, 127 scoped_ptr<IndexedDBKeyRange> key_range,
127 bool key_only, 128 bool key_only,
128 scoped_refptr<IndexedDBCallbacks> callbacks); 129 scoped_refptr<IndexedDBCallbacks> callbacks);
129 void Put(int64 transaction_id, 130 void Put(int64 transaction_id,
130 int64 object_store_id, 131 int64 object_store_id,
131 IndexedDBValue* value, 132 IndexedDBValue* value,
133 ScopedVector<webkit_blob::BlobDataHandle>* handles,
132 scoped_ptr<IndexedDBKey> key, 134 scoped_ptr<IndexedDBKey> key,
133 PutMode mode, 135 PutMode mode,
134 scoped_refptr<IndexedDBCallbacks> callbacks, 136 scoped_refptr<IndexedDBCallbacks> callbacks,
135 const std::vector<IndexKeys>& index_keys); 137 const std::vector<IndexKeys>& index_keys);
136 void SetIndexKeys(int64 transaction_id, 138 void SetIndexKeys(int64 transaction_id,
137 int64 object_store_id, 139 int64 object_store_id,
138 scoped_ptr<IndexedDBKey> primary_key, 140 scoped_ptr<IndexedDBKey> primary_key,
139 const std::vector<IndexKeys>& index_keys); 141 const std::vector<IndexKeys>& index_keys);
140 void SetIndexesReady(int64 transaction_id, 142 void SetIndexesReady(int64 transaction_id,
141 int64 object_store_id, 143 int64 object_store_id,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 typedef std::list<PendingDeleteCall*> PendingDeleteCallList; 294 typedef std::list<PendingDeleteCall*> PendingDeleteCallList;
293 PendingDeleteCallList pending_delete_calls_; 295 PendingDeleteCallList pending_delete_calls_;
294 296
295 typedef list_set<IndexedDBConnection*> ConnectionSet; 297 typedef list_set<IndexedDBConnection*> ConnectionSet;
296 ConnectionSet connections_; 298 ConnectionSet connections_;
297 }; 299 };
298 300
299 } // namespace content 301 } // namespace content
300 302
301 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 303 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store_unittest.cc ('k') | content/browser/indexed_db/indexed_db_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698