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

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

Issue 10041014: IndexedDB: API rename to allow return type of keyPath accessors to change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unneeded includes, added TODOs Created 8 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
« no previous file with comments | « no previous file | content/common/indexed_db/proxy_webidbindex_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/in_process_webkit/indexed_db_dispatcher_host.h" 5 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "content/browser/in_process_webkit/indexed_db_callbacks.h" 10 #include "content/browser/in_process_webkit/indexed_db_callbacks.h"
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 525
526 void IndexedDBDispatcherHost::IndexDispatcherHost::OnStoreName( 526 void IndexedDBDispatcherHost::IndexDispatcherHost::OnStoreName(
527 int32 object_id, string16* store_name) { 527 int32 object_id, string16* store_name) {
528 parent_->SyncGetter<string16>( 528 parent_->SyncGetter<string16>(
529 &map_, object_id, store_name, &WebIDBIndex::storeName); 529 &map_, object_id, store_name, &WebIDBIndex::storeName);
530 } 530 }
531 531
532 void IndexedDBDispatcherHost::IndexDispatcherHost::OnKeyPath( 532 void IndexedDBDispatcherHost::IndexDispatcherHost::OnKeyPath(
533 int32 object_id, NullableString16* key_path) { 533 int32 object_id, NullableString16* key_path) {
534 parent_->SyncGetter<NullableString16>( 534 parent_->SyncGetter<NullableString16>(
535 &map_, object_id, key_path, &WebIDBIndex::keyPath); 535 &map_, object_id, key_path, &WebIDBIndex::keyPathString);
536 } 536 }
537 537
538 void IndexedDBDispatcherHost::IndexDispatcherHost::OnUnique( 538 void IndexedDBDispatcherHost::IndexDispatcherHost::OnUnique(
539 int32 object_id, bool* unique) { 539 int32 object_id, bool* unique) {
540 parent_->SyncGetter<bool>(&map_, object_id, unique, &WebIDBIndex::unique); 540 parent_->SyncGetter<bool>(&map_, object_id, unique, &WebIDBIndex::unique);
541 } 541 }
542 542
543 void IndexedDBDispatcherHost::IndexDispatcherHost::OnMultiEntry( 543 void IndexedDBDispatcherHost::IndexDispatcherHost::OnMultiEntry(
544 int32 object_id, bool* multi_entry) { 544 int32 object_id, bool* multi_entry) {
545 parent_->SyncGetter<bool>( 545 parent_->SyncGetter<bool>(
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 703
704 void IndexedDBDispatcherHost::ObjectStoreDispatcherHost::OnName( 704 void IndexedDBDispatcherHost::ObjectStoreDispatcherHost::OnName(
705 int32 object_id, string16* name) { 705 int32 object_id, string16* name) {
706 parent_->SyncGetter<string16>( 706 parent_->SyncGetter<string16>(
707 &map_, object_id, name, &WebIDBObjectStore::name); 707 &map_, object_id, name, &WebIDBObjectStore::name);
708 } 708 }
709 709
710 void IndexedDBDispatcherHost::ObjectStoreDispatcherHost::OnKeyPath( 710 void IndexedDBDispatcherHost::ObjectStoreDispatcherHost::OnKeyPath(
711 int32 object_id, NullableString16* keyPath) { 711 int32 object_id, NullableString16* keyPath) {
712 parent_->SyncGetter<NullableString16>( 712 parent_->SyncGetter<NullableString16>(
713 &map_, object_id, keyPath, &WebIDBObjectStore::keyPath); 713 &map_, object_id, keyPath, &WebIDBObjectStore::keyPathString);
714 } 714 }
715 715
716 void IndexedDBDispatcherHost::ObjectStoreDispatcherHost::OnIndexNames( 716 void IndexedDBDispatcherHost::ObjectStoreDispatcherHost::OnIndexNames(
717 int32 idb_object_store_id, std::vector<string16>* index_names) { 717 int32 idb_object_store_id, std::vector<string16>* index_names) {
718 WebIDBObjectStore* idb_object_store = parent_->GetOrTerminateProcess( 718 WebIDBObjectStore* idb_object_store = parent_->GetOrTerminateProcess(
719 &map_, idb_object_store_id); 719 &map_, idb_object_store_id);
720 if (!idb_object_store) 720 if (!idb_object_store)
721 return; 721 return;
722 722
723 WebDOMStringList web_index_names = idb_object_store->indexNames(); 723 WebDOMStringList web_index_names = idb_object_store->indexNames();
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 } 1193 }
1194 idb_transaction->didCompleteTaskEvents(); 1194 idb_transaction->didCompleteTaskEvents();
1195 } 1195 }
1196 1196
1197 void IndexedDBDispatcherHost::TransactionDispatcherHost::OnDestroyed( 1197 void IndexedDBDispatcherHost::TransactionDispatcherHost::OnDestroyed(
1198 int32 object_id) { 1198 int32 object_id) {
1199 transaction_size_map_.erase(object_id); 1199 transaction_size_map_.erase(object_id);
1200 transaction_url_map_.erase(object_id); 1200 transaction_url_map_.erase(object_id);
1201 parent_->DestroyObject(&map_, object_id); 1201 parent_->DestroyObject(&map_, object_id);
1202 } 1202 }
OLDNEW
« no previous file with comments | « no previous file | content/common/indexed_db/proxy_webidbindex_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698