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

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

Issue 2276593002: Support renaming of IndexedDB indexes and object stores. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test coverage for the (slightly incorrect) behavior in strict mode when our flag is not enabl… Created 4 years, 3 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 ~DatabaseDispatcherHost(); 164 ~DatabaseDispatcherHost();
165 165
166 void CloseAll(); 166 void CloseAll();
167 bool OnMessageReceived(const IPC::Message& message); 167 bool OnMessageReceived(const IPC::Message& message);
168 168
169 void OnCreateObjectStore( 169 void OnCreateObjectStore(
170 const IndexedDBHostMsg_DatabaseCreateObjectStore_Params& params); 170 const IndexedDBHostMsg_DatabaseCreateObjectStore_Params& params);
171 void OnDeleteObjectStore(int32_t ipc_database_id, 171 void OnDeleteObjectStore(int32_t ipc_database_id,
172 int64_t transaction_id, 172 int64_t transaction_id,
173 int64_t object_store_id); 173 int64_t object_store_id);
174 void OnRenameObjectStore(int32_t ipc_database_id,
175 int64_t transaction_id,
176 int64_t object_store_id,
177 const base::string16& new_name);
174 void OnCreateTransaction( 178 void OnCreateTransaction(
175 const IndexedDBHostMsg_DatabaseCreateTransaction_Params&); 179 const IndexedDBHostMsg_DatabaseCreateTransaction_Params&);
176 void OnClose(int32_t ipc_database_id); 180 void OnClose(int32_t ipc_database_id);
177 void OnVersionChangeIgnored(int32_t ipc_database_id); 181 void OnVersionChangeIgnored(int32_t ipc_database_id);
178 void OnDestroyed(int32_t ipc_database_id); 182 void OnDestroyed(int32_t ipc_database_id);
179 183
180 void OnObserve(const IndexedDBHostMsg_DatabaseObserve_Params&); 184 void OnObserve(const IndexedDBHostMsg_DatabaseObserve_Params&);
181 void OnUnobserve(int32_t ipc_database_id, 185 void OnUnobserve(int32_t ipc_database_id,
182 const std::vector<int32_t>& observer_ids_to_remove); 186 const std::vector<int32_t>& observer_ids_to_remove);
183 187
(...skipping 18 matching lines...) Expand all
202 int32_t ipc_callbacks_id, 206 int32_t ipc_callbacks_id,
203 int32_t ipc_database_id, 207 int32_t ipc_database_id,
204 int64_t transaction_id, 208 int64_t transaction_id,
205 int64_t object_store_id); 209 int64_t object_store_id);
206 void OnCreateIndex( 210 void OnCreateIndex(
207 const IndexedDBHostMsg_DatabaseCreateIndex_Params& params); 211 const IndexedDBHostMsg_DatabaseCreateIndex_Params& params);
208 void OnDeleteIndex(int32_t ipc_database_id, 212 void OnDeleteIndex(int32_t ipc_database_id,
209 int64_t transaction_id, 213 int64_t transaction_id,
210 int64_t object_store_id, 214 int64_t object_store_id,
211 int64_t index_id); 215 int64_t index_id);
216 void OnRenameIndex(int32_t ipc_database_id,
217 int64_t transaction_id,
218 int64_t object_store_id,
219 int64_t index_id,
220 const base::string16& new_name);
212 221
213 void OnAbort(int32_t ipc_database_id, int64_t transaction_id); 222 void OnAbort(int32_t ipc_database_id, int64_t transaction_id);
214 void OnCommit(int32_t ipc_database_id, int64_t transaction_id); 223 void OnCommit(int32_t ipc_database_id, int64_t transaction_id);
215 void OnGotUsageAndQuotaForCommit(int32_t ipc_database_id, 224 void OnGotUsageAndQuotaForCommit(int32_t ipc_database_id,
216 int64_t transaction_id, 225 int64_t transaction_id,
217 storage::QuotaStatusCode status, 226 storage::QuotaStatusCode status,
218 int64_t usage, 227 int64_t usage,
219 int64_t quota); 228 int64_t quota);
220 229
221 IndexedDBDispatcherHost* parent_; 230 IndexedDBDispatcherHost* parent_;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 321
313 // Used to set file permissions for blob storage. 322 // Used to set file permissions for blob storage.
314 int ipc_process_id_; 323 int ipc_process_id_;
315 324
316 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); 325 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost);
317 }; 326 };
318 327
319 } // namespace content 328 } // namespace content
320 329
321 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ 330 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698