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" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
14 | 14 |
15 using content::IndexedDBKeyPath; | |
16 using content::IndexedDBKeyRange; | |
17 using WebKit::WebExceptionCode; | 15 using WebKit::WebExceptionCode; |
18 using WebKit::WebDOMStringList; | 16 using WebKit::WebDOMStringList; |
19 using WebKit::WebIDBKeyPath; | 17 using WebKit::WebIDBKeyPath; |
20 using WebKit::WebString; | 18 using WebKit::WebString; |
21 using WebKit::WebVector; | 19 using WebKit::WebVector; |
22 | 20 |
| 21 namespace content { |
| 22 |
23 RendererWebIDBIndexImpl::RendererWebIDBIndexImpl(int32 idb_index_id) | 23 RendererWebIDBIndexImpl::RendererWebIDBIndexImpl(int32 idb_index_id) |
24 : idb_index_id_(idb_index_id) { | 24 : idb_index_id_(idb_index_id) { |
25 } | 25 } |
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( |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 const WebKit::WebIDBKeyRange& key_range, | 84 const WebKit::WebIDBKeyRange& key_range, |
85 WebKit::WebIDBCallbacks* callbacks, | 85 WebKit::WebIDBCallbacks* callbacks, |
86 const WebKit::WebIDBTransaction& transaction, | 86 const WebKit::WebIDBTransaction& transaction, |
87 WebExceptionCode& ec) { | 87 WebExceptionCode& ec) { |
88 IndexedDBDispatcher* dispatcher = | 88 IndexedDBDispatcher* dispatcher = |
89 IndexedDBDispatcher::ThreadSpecificInstance(); | 89 IndexedDBDispatcher::ThreadSpecificInstance(); |
90 dispatcher->RequestIDBIndexGetKey( | 90 dispatcher->RequestIDBIndexGetKey( |
91 IndexedDBKeyRange(key_range), callbacks, idb_index_id_, | 91 IndexedDBKeyRange(key_range), callbacks, idb_index_id_, |
92 transaction, &ec); | 92 transaction, &ec); |
93 } | 93 } |
| 94 |
| 95 } // namespace content |
OLD | NEW |