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

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

Issue 1074493002: IndexedDB: Added IDBObjectStore.getAll() implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unused indexId/keyOnly parameters to getAll. Created 5 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/id_map.h" 14 #include "base/id_map.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "content/browser/fileapi/chrome_blob_storage_context.h" 16 #include "content/browser/fileapi/chrome_blob_storage_context.h"
17 #include "content/public/browser/browser_message_filter.h" 17 #include "content/public/browser/browser_message_filter.h"
18 #include "net/url_request/url_request_context_getter.h" 18 #include "net/url_request/url_request_context_getter.h"
19 #include "storage/browser/blob/blob_data_handle.h" 19 #include "storage/browser/blob/blob_data_handle.h"
20 #include "url/gurl.h" 20 #include "url/gurl.h"
21 21
22 struct IndexedDBDatabaseMetadata; 22 struct IndexedDBDatabaseMetadata;
23 struct IndexedDBHostMsg_DatabaseCount_Params; 23 struct IndexedDBHostMsg_DatabaseCount_Params;
24 struct IndexedDBHostMsg_DatabaseCreateIndex_Params; 24 struct IndexedDBHostMsg_DatabaseCreateIndex_Params;
25 struct IndexedDBHostMsg_DatabaseCreateObjectStore_Params; 25 struct IndexedDBHostMsg_DatabaseCreateObjectStore_Params;
26 struct IndexedDBHostMsg_DatabaseCreateTransaction_Params; 26 struct IndexedDBHostMsg_DatabaseCreateTransaction_Params;
27 struct IndexedDBHostMsg_DatabaseDeleteRange_Params; 27 struct IndexedDBHostMsg_DatabaseDeleteRange_Params;
28 struct IndexedDBHostMsg_DatabaseGet_Params; 28 struct IndexedDBHostMsg_DatabaseGet_Params;
29 struct IndexedDBHostMsg_DatabaseGetAll_Params;
29 struct IndexedDBHostMsg_DatabaseOpenCursor_Params; 30 struct IndexedDBHostMsg_DatabaseOpenCursor_Params;
30 struct IndexedDBHostMsg_DatabasePut_Params; 31 struct IndexedDBHostMsg_DatabasePut_Params;
31 struct IndexedDBHostMsg_DatabaseSetIndexKeys_Params; 32 struct IndexedDBHostMsg_DatabaseSetIndexKeys_Params;
32 struct IndexedDBHostMsg_FactoryDeleteDatabase_Params; 33 struct IndexedDBHostMsg_FactoryDeleteDatabase_Params;
33 struct IndexedDBHostMsg_FactoryGetDatabaseNames_Params; 34 struct IndexedDBHostMsg_FactoryGetDatabaseNames_Params;
34 struct IndexedDBHostMsg_FactoryOpen_Params; 35 struct IndexedDBHostMsg_FactoryOpen_Params;
35 36
36 namespace content { 37 namespace content {
37 class IndexedDBBlobInfo; 38 class IndexedDBBlobInfo;
38 class IndexedDBConnection; 39 class IndexedDBConnection;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 void OnDeleteObjectStore(int32 ipc_database_id, 157 void OnDeleteObjectStore(int32 ipc_database_id,
157 int64 transaction_id, 158 int64 transaction_id,
158 int64 object_store_id); 159 int64 object_store_id);
159 void OnCreateTransaction( 160 void OnCreateTransaction(
160 const IndexedDBHostMsg_DatabaseCreateTransaction_Params&); 161 const IndexedDBHostMsg_DatabaseCreateTransaction_Params&);
161 void OnClose(int32 ipc_database_id); 162 void OnClose(int32 ipc_database_id);
162 void OnVersionChangeIgnored(int32 ipc_database_id); 163 void OnVersionChangeIgnored(int32 ipc_database_id);
163 void OnDestroyed(int32 ipc_database_id); 164 void OnDestroyed(int32 ipc_database_id);
164 165
165 void OnGet(const IndexedDBHostMsg_DatabaseGet_Params& params); 166 void OnGet(const IndexedDBHostMsg_DatabaseGet_Params& params);
167 void OnGetAll(const IndexedDBHostMsg_DatabaseGetAll_Params& params);
166 // OnPutWrapper starts on the IO thread so that it can grab BlobDataHandles 168 // OnPutWrapper starts on the IO thread so that it can grab BlobDataHandles
167 // before posting to the IDB TaskRunner for the rest of the job. 169 // before posting to the IDB TaskRunner for the rest of the job.
168 void OnPutWrapper(const IndexedDBHostMsg_DatabasePut_Params& params); 170 void OnPutWrapper(const IndexedDBHostMsg_DatabasePut_Params& params);
169 void OnPut(const IndexedDBHostMsg_DatabasePut_Params& params, 171 void OnPut(const IndexedDBHostMsg_DatabasePut_Params& params,
170 std::vector<storage::BlobDataHandle*> handles); 172 std::vector<storage::BlobDataHandle*> handles);
171 void OnSetIndexKeys( 173 void OnSetIndexKeys(
172 const IndexedDBHostMsg_DatabaseSetIndexKeys_Params& params); 174 const IndexedDBHostMsg_DatabaseSetIndexKeys_Params& params);
173 void OnSetIndexesReady(int32 ipc_database_id, 175 void OnSetIndexesReady(int32 ipc_database_id,
174 int64 transaction_id, 176 int64 transaction_id,
175 int64 object_store_id, 177 int64 object_store_id,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 281
280 // Used to set file permissions for blob storage. 282 // Used to set file permissions for blob storage.
281 int ipc_process_id_; 283 int ipc_process_id_;
282 284
283 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); 285 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost);
284 }; 286 };
285 287
286 } // namespace content 288 } // namespace content
287 289
288 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ 290 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_database.cc ('k') | content/browser/indexed_db/indexed_db_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698