OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/indexed_db_dispatcher.h" | 5 #include "chrome/renderer/indexed_db_dispatcher.h" |
6 | 6 |
| 7 #include "chrome/common/indexed_db_key.h" |
7 #include "chrome/common/render_messages.h" | 8 #include "chrome/common/render_messages.h" |
8 #include "chrome/common/serialized_script_value.h" | 9 #include "chrome/common/serialized_script_value.h" |
9 #include "chrome/renderer/render_thread.h" | 10 #include "chrome/renderer/render_thread.h" |
10 #include "chrome/renderer/render_view.h" | 11 #include "chrome/renderer/render_view.h" |
11 #include "chrome/renderer/renderer_webidbcursor_impl.h" | 12 #include "chrome/renderer/renderer_webidbcursor_impl.h" |
12 #include "chrome/renderer/renderer_webidbdatabase_impl.h" | 13 #include "chrome/renderer/renderer_webidbdatabase_impl.h" |
13 #include "chrome/renderer/renderer_webidbindex_impl.h" | 14 #include "chrome/renderer/renderer_webidbindex_impl.h" |
14 #include "chrome/renderer/renderer_webidbobjectstore_impl.h" | 15 #include "chrome/renderer/renderer_webidbobjectstore_impl.h" |
15 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
16 #include "third_party/WebKit/WebKit/chromium/public/WebIDBDatabaseError.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebIDBDatabaseError.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 callbacks->onSuccess(new RendererWebIDBCursorImpl(object_id)); | 225 callbacks->onSuccess(new RendererWebIDBCursorImpl(object_id)); |
225 pending_callbacks_.Remove(repsonse_id); | 226 pending_callbacks_.Remove(repsonse_id); |
226 } | 227 } |
227 | 228 |
228 void IndexedDBDispatcher::OnError(int32 response_id, int code, | 229 void IndexedDBDispatcher::OnError(int32 response_id, int code, |
229 const string16& message) { | 230 const string16& message) { |
230 WebKit::WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(response_id); | 231 WebKit::WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(response_id); |
231 callbacks->onError(WebIDBDatabaseError(code, message)); | 232 callbacks->onError(WebIDBDatabaseError(code, message)); |
232 pending_callbacks_.Remove(response_id); | 233 pending_callbacks_.Remove(response_id); |
233 } | 234 } |
OLD | NEW |