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

Side by Side Diff: content/common/indexed_db/proxy_webidbobjectstore_impl.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 | « content/common/indexed_db/proxy_webidbobjectstore_impl.h ('k') | webkit/glue/idb_bindings.cc » ('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/common/indexed_db/proxy_webidbobjectstore_impl.h" 5 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.h"
6 6
7 #include "content/common/indexed_db/indexed_db_messages.h" 7 #include "content/common/indexed_db/indexed_db_messages.h"
8 #include "content/public/common/serialized_script_value.h" 8 #include "content/public/common/serialized_script_value.h"
9 #include "content/common/indexed_db/indexed_db_dispatcher.h" 9 #include "content/common/indexed_db/indexed_db_dispatcher.h"
10 #include "content/common/indexed_db/proxy_webidbindex_impl.h" 10 #include "content/common/indexed_db/proxy_webidbindex_impl.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 new IndexedDBHostMsg_ObjectStoreDestroyed(idb_object_store_id_)); 42 new IndexedDBHostMsg_ObjectStoreDestroyed(idb_object_store_id_));
43 } 43 }
44 44
45 WebString RendererWebIDBObjectStoreImpl::name() const { 45 WebString RendererWebIDBObjectStoreImpl::name() const {
46 string16 result; 46 string16 result;
47 IndexedDBDispatcher::Send( 47 IndexedDBDispatcher::Send(
48 new IndexedDBHostMsg_ObjectStoreName(idb_object_store_id_, &result)); 48 new IndexedDBHostMsg_ObjectStoreName(idb_object_store_id_, &result));
49 return result; 49 return result;
50 } 50 }
51 51
52 WebString RendererWebIDBObjectStoreImpl::keyPath() const { 52 WebString RendererWebIDBObjectStoreImpl::keyPathString() const {
53 NullableString16 result; 53 NullableString16 result;
54 IndexedDBDispatcher::Send( 54 IndexedDBDispatcher::Send(
55 new IndexedDBHostMsg_ObjectStoreKeyPath(idb_object_store_id_, &result)); 55 new IndexedDBHostMsg_ObjectStoreKeyPath(idb_object_store_id_, &result));
56 return result; 56 return result;
57 } 57 }
58 58
59 WebDOMStringList RendererWebIDBObjectStoreImpl::indexNames() const { 59 WebDOMStringList RendererWebIDBObjectStoreImpl::indexNames() const {
60 std::vector<string16> result; 60 std::vector<string16> result;
61 IndexedDBDispatcher::Send( 61 IndexedDBDispatcher::Send(
62 new IndexedDBHostMsg_ObjectStoreIndexNames( 62 new IndexedDBHostMsg_ObjectStoreIndexNames(
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 const WebIDBKeyRange& idb_key_range, 188 const WebIDBKeyRange& idb_key_range,
189 WebIDBCallbacks* callbacks, 189 WebIDBCallbacks* callbacks,
190 const WebIDBTransaction& transaction, 190 const WebIDBTransaction& transaction,
191 WebExceptionCode& ec) { 191 WebExceptionCode& ec) {
192 IndexedDBDispatcher* dispatcher = 192 IndexedDBDispatcher* dispatcher =
193 IndexedDBDispatcher::ThreadSpecificInstance(); 193 IndexedDBDispatcher::ThreadSpecificInstance();
194 dispatcher->RequestIDBObjectStoreCount( 194 dispatcher->RequestIDBObjectStoreCount(
195 idb_key_range, callbacks, idb_object_store_id_, 195 idb_key_range, callbacks, idb_object_store_id_,
196 transaction, &ec); 196 transaction, &ec);
197 } 197 }
OLDNEW
« no previous file with comments | « content/common/indexed_db/proxy_webidbobjectstore_impl.h ('k') | webkit/glue/idb_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698