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

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

Issue 1706413002: Indexed DB: Rename "int version" to "version" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 10 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 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" 5 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 int32_t ipc_cursor_id) { 271 int32_t ipc_cursor_id) {
272 DCHECK(indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); 272 DCHECK(indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread());
273 return cursor_dispatcher_host_->map_.Lookup(ipc_cursor_id); 273 return cursor_dispatcher_host_->map_.Lookup(ipc_cursor_id);
274 } 274 }
275 275
276 ::IndexedDBDatabaseMetadata IndexedDBDispatcherHost::ConvertMetadata( 276 ::IndexedDBDatabaseMetadata IndexedDBDispatcherHost::ConvertMetadata(
277 const content::IndexedDBDatabaseMetadata& web_metadata) { 277 const content::IndexedDBDatabaseMetadata& web_metadata) {
278 ::IndexedDBDatabaseMetadata metadata; 278 ::IndexedDBDatabaseMetadata metadata;
279 metadata.id = web_metadata.id; 279 metadata.id = web_metadata.id;
280 metadata.name = web_metadata.name; 280 metadata.name = web_metadata.name;
281 metadata.int_version = web_metadata.int_version; 281 metadata.version = web_metadata.version;
282 metadata.max_object_store_id = web_metadata.max_object_store_id; 282 metadata.max_object_store_id = web_metadata.max_object_store_id;
283 283
284 for (const auto& iter : web_metadata.object_stores) { 284 for (const auto& iter : web_metadata.object_stores) {
285 const content::IndexedDBObjectStoreMetadata& web_store_metadata = 285 const content::IndexedDBObjectStoreMetadata& web_store_metadata =
286 iter.second; 286 iter.second;
287 ::IndexedDBObjectStoreMetadata idb_store_metadata; 287 ::IndexedDBObjectStoreMetadata idb_store_metadata;
288 idb_store_metadata.id = web_store_metadata.id; 288 idb_store_metadata.id = web_store_metadata.id;
289 idb_store_metadata.name = web_store_metadata.name; 289 idb_store_metadata.name = web_store_metadata.name;
290 idb_store_metadata.key_path = web_store_metadata.key_path; 290 idb_store_metadata.key_path = web_store_metadata.key_path;
291 idb_store_metadata.auto_increment = web_store_metadata.auto_increment; 291 idb_store_metadata.auto_increment = web_store_metadata.auto_increment;
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 DLOG(ERROR) << "Unable to reset prefetch"; 1040 DLOG(ERROR) << "Unable to reset prefetch";
1041 } 1041 }
1042 1042
1043 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( 1043 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed(
1044 int32_t ipc_object_id) { 1044 int32_t ipc_object_id) {
1045 DCHECK(parent_->context()->TaskRunner()->RunsTasksOnCurrentThread()); 1045 DCHECK(parent_->context()->TaskRunner()->RunsTasksOnCurrentThread());
1046 parent_->DestroyObject(&map_, ipc_object_id); 1046 parent_->DestroyObject(&map_, ipc_object_id);
1047 } 1047 }
1048 1048
1049 } // namespace content 1049 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_database_unittest.cc ('k') | content/browser/indexed_db/indexed_db_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698