OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/renderer/renderer_webidbcursor_impl.h" | 5 #include "chrome/renderer/renderer_webidbcursor_impl.h" |
6 | 6 |
7 #include "chrome/common/indexed_db_messages.h" | |
8 #include "chrome/renderer/indexed_db_dispatcher.h" | 7 #include "chrome/renderer/indexed_db_dispatcher.h" |
9 #include "chrome/renderer/render_thread.h" | 8 #include "chrome/renderer/render_thread.h" |
| 9 #include "content/common/indexed_db_messages.h" |
10 | 10 |
11 using WebKit::WebExceptionCode; | 11 using WebKit::WebExceptionCode; |
12 using WebKit::WebIDBCallbacks; | 12 using WebKit::WebIDBCallbacks; |
13 using WebKit::WebIDBKey; | 13 using WebKit::WebIDBKey; |
14 using WebKit::WebSerializedScriptValue; | 14 using WebKit::WebSerializedScriptValue; |
15 | 15 |
16 RendererWebIDBCursorImpl::RendererWebIDBCursorImpl(int32 idb_cursor_id) | 16 RendererWebIDBCursorImpl::RendererWebIDBCursorImpl(int32 idb_cursor_id) |
17 : idb_cursor_id_(idb_cursor_id) { | 17 : idb_cursor_id_(idb_cursor_id) { |
18 } | 18 } |
19 | 19 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 dispatcher->RequestIDBCursorContinue(IndexedDBKey(key), callbacks, | 78 dispatcher->RequestIDBCursorContinue(IndexedDBKey(key), callbacks, |
79 idb_cursor_id_, &ec); | 79 idb_cursor_id_, &ec); |
80 } | 80 } |
81 | 81 |
82 void RendererWebIDBCursorImpl::remove(WebIDBCallbacks* callbacks, | 82 void RendererWebIDBCursorImpl::remove(WebIDBCallbacks* callbacks, |
83 WebExceptionCode& ec) { | 83 WebExceptionCode& ec) { |
84 IndexedDBDispatcher* dispatcher = | 84 IndexedDBDispatcher* dispatcher = |
85 RenderThread::current()->indexed_db_dispatcher(); | 85 RenderThread::current()->indexed_db_dispatcher(); |
86 dispatcher->RequestIDBCursorDelete(callbacks, idb_cursor_id_, &ec); | 86 dispatcher->RequestIDBCursorDelete(callbacks, idb_cursor_id_, &ec); |
87 } | 87 } |
OLD | NEW |