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

Side by Side Diff: content/common/indexed_db/proxy_webidbindex_impl.cc

Issue 10657011: IndexedDB: Remove IPC plumbing for obsolete property accessors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
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_webidbindex_impl.h" 5 #include "content/common/indexed_db/proxy_webidbindex_impl.h"
6 6
7 #include "content/common/indexed_db/indexed_db_dispatcher.h" 7 #include "content/common/indexed_db/indexed_db_dispatcher.h"
8 #include "content/common/indexed_db/indexed_db_messages.h" 8 #include "content/common/indexed_db/indexed_db_messages.h"
9 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h" 9 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h"
10 #include "content/common/child_thread.h" 10 #include "content/common/child_thread.h"
(...skipping 15 matching lines...) Expand all
26 26
27 RendererWebIDBIndexImpl::~RendererWebIDBIndexImpl() { 27 RendererWebIDBIndexImpl::~RendererWebIDBIndexImpl() {
28 // It's not possible for there to be pending callbacks that address this 28 // It's not possible for there to be pending callbacks that address this
29 // object since inside WebKit, they hold a reference to the object wich owns 29 // object since inside WebKit, they hold a reference to the object wich owns
30 // this object. But, if that ever changed, then we'd need to invalidate 30 // this object. But, if that ever changed, then we'd need to invalidate
31 // any such pointers. 31 // any such pointers.
32 IndexedDBDispatcher::Send(new IndexedDBHostMsg_IndexDestroyed( 32 IndexedDBDispatcher::Send(new IndexedDBHostMsg_IndexDestroyed(
33 idb_index_id_)); 33 idb_index_id_));
34 } 34 }
35 35
36 WebString RendererWebIDBIndexImpl::name() const {
37 string16 result;
38 IndexedDBDispatcher::Send(
39 new IndexedDBHostMsg_IndexName(idb_index_id_, &result));
40 return result;
41 }
42
43 WebIDBKeyPath RendererWebIDBIndexImpl::keyPath() const {
44 IndexedDBKeyPath result;
45 IndexedDBDispatcher::Send(
46 new IndexedDBHostMsg_IndexKeyPath(idb_index_id_, &result));
47 return result;
48 }
49
50 bool RendererWebIDBIndexImpl::unique() const {
51 bool result;
52 IndexedDBDispatcher::Send(
53 new IndexedDBHostMsg_IndexUnique(idb_index_id_, &result));
54 return result;
55 }
56
57 bool RendererWebIDBIndexImpl::multiEntry() const {
58 bool result;
59 IndexedDBDispatcher::Send(
60 new IndexedDBHostMsg_IndexMultiEntry(idb_index_id_, &result));
61 return result;
62 }
63
64 void RendererWebIDBIndexImpl::openObjectCursor( 36 void RendererWebIDBIndexImpl::openObjectCursor(
65 const WebKit::WebIDBKeyRange& range, 37 const WebKit::WebIDBKeyRange& range,
66 unsigned short direction, 38 unsigned short direction,
67 WebKit::WebIDBCallbacks* callbacks, 39 WebKit::WebIDBCallbacks* callbacks,
68 const WebKit::WebIDBTransaction& transaction, 40 const WebKit::WebIDBTransaction& transaction,
69 WebExceptionCode& ec) { 41 WebExceptionCode& ec) {
70 IndexedDBDispatcher* dispatcher = 42 IndexedDBDispatcher* dispatcher =
71 IndexedDBDispatcher::ThreadSpecificInstance(); 43 IndexedDBDispatcher::ThreadSpecificInstance();
72 dispatcher->RequestIDBIndexOpenObjectCursor( 44 dispatcher->RequestIDBIndexOpenObjectCursor(
73 range, direction, callbacks, idb_index_id_, transaction, &ec); 45 range, direction, callbacks, idb_index_id_, transaction, &ec);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const WebKit::WebIDBKeyRange& key_range, 84 const WebKit::WebIDBKeyRange& key_range,
113 WebKit::WebIDBCallbacks* callbacks, 85 WebKit::WebIDBCallbacks* callbacks,
114 const WebKit::WebIDBTransaction& transaction, 86 const WebKit::WebIDBTransaction& transaction,
115 WebExceptionCode& ec) { 87 WebExceptionCode& ec) {
116 IndexedDBDispatcher* dispatcher = 88 IndexedDBDispatcher* dispatcher =
117 IndexedDBDispatcher::ThreadSpecificInstance(); 89 IndexedDBDispatcher::ThreadSpecificInstance();
118 dispatcher->RequestIDBIndexGetKey( 90 dispatcher->RequestIDBIndexGetKey(
119 IndexedDBKeyRange(key_range), callbacks, idb_index_id_, 91 IndexedDBKeyRange(key_range), callbacks, idb_index_id_,
120 transaction, &ec); 92 transaction, &ec);
121 } 93 }
OLDNEW
« no previous file with comments | « content/common/indexed_db/proxy_webidbindex_impl.h ('k') | content/common/indexed_db/proxy_webidbobjectstore_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698