OLD | NEW |
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 25 matching lines...) Expand all Loading... |
36 return result; | 36 return result; |
37 } | 37 } |
38 | 38 |
39 WebString RendererWebIDBIndexImpl::storeName() const { | 39 WebString RendererWebIDBIndexImpl::storeName() const { |
40 string16 result; | 40 string16 result; |
41 IndexedDBDispatcher::Send( | 41 IndexedDBDispatcher::Send( |
42 new IndexedDBHostMsg_IndexStoreName(idb_index_id_, &result)); | 42 new IndexedDBHostMsg_IndexStoreName(idb_index_id_, &result)); |
43 return result; | 43 return result; |
44 } | 44 } |
45 | 45 |
46 WebString RendererWebIDBIndexImpl::keyPath() const { | 46 WebString RendererWebIDBIndexImpl::keyPathString() const { |
47 NullableString16 result; | 47 NullableString16 result; |
48 IndexedDBDispatcher::Send( | 48 IndexedDBDispatcher::Send( |
49 new IndexedDBHostMsg_IndexKeyPath(idb_index_id_, &result)); | 49 new IndexedDBHostMsg_IndexKeyPath(idb_index_id_, &result)); |
50 return result; | 50 return result; |
51 } | 51 } |
52 | 52 |
53 bool RendererWebIDBIndexImpl::unique() const { | 53 bool RendererWebIDBIndexImpl::unique() const { |
54 bool result; | 54 bool result; |
55 IndexedDBDispatcher::Send( | 55 IndexedDBDispatcher::Send( |
56 new IndexedDBHostMsg_IndexUnique(idb_index_id_, &result)); | 56 new IndexedDBHostMsg_IndexUnique(idb_index_id_, &result)); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 void RendererWebIDBIndexImpl::getKey( | 113 void RendererWebIDBIndexImpl::getKey( |
114 const WebKit::WebIDBKey& key, | 114 const WebKit::WebIDBKey& key, |
115 WebKit::WebIDBCallbacks* callbacks, | 115 WebKit::WebIDBCallbacks* callbacks, |
116 const WebKit::WebIDBTransaction& transaction, | 116 const WebKit::WebIDBTransaction& transaction, |
117 WebExceptionCode& ec) { | 117 WebExceptionCode& ec) { |
118 IndexedDBDispatcher* dispatcher = | 118 IndexedDBDispatcher* dispatcher = |
119 IndexedDBDispatcher::ThreadSpecificInstance(); | 119 IndexedDBDispatcher::ThreadSpecificInstance(); |
120 dispatcher->RequestIDBIndexGetKey( | 120 dispatcher->RequestIDBIndexGetKey( |
121 IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec); | 121 IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec); |
122 } | 122 } |
OLD | NEW |