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/indexed_db_key.h" |
8 #include "chrome/common/render_messages.h" | 8 #include "chrome/common/render_messages.h" |
| 9 #include "chrome/common/render_messages_params.h" |
9 #include "chrome/common/serialized_script_value.h" | 10 #include "chrome/common/serialized_script_value.h" |
10 #include "chrome/renderer/render_thread.h" | 11 #include "chrome/renderer/render_thread.h" |
11 #include "chrome/renderer/render_view.h" | 12 #include "chrome/renderer/render_view.h" |
12 #include "chrome/renderer/renderer_webidbcursor_impl.h" | 13 #include "chrome/renderer/renderer_webidbcursor_impl.h" |
13 #include "chrome/renderer/renderer_webidbdatabase_impl.h" | 14 #include "chrome/renderer/renderer_webidbdatabase_impl.h" |
14 #include "chrome/renderer/renderer_webidbindex_impl.h" | 15 #include "chrome/renderer/renderer_webidbindex_impl.h" |
15 #include "chrome/renderer/renderer_webidbobjectstore_impl.h" | 16 #include "chrome/renderer/renderer_webidbobjectstore_impl.h" |
16 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
17 #include "third_party/WebKit/WebKit/chromium/public/WebIDBDatabaseError.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebIDBDatabaseError.h" |
18 #include "third_party/WebKit/WebKit/chromium/public/WebIDBKeyRange.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebIDBKeyRange.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 pending_callbacks_.Remove(response_id); | 241 pending_callbacks_.Remove(response_id); |
241 } | 242 } |
242 | 243 |
243 void IndexedDBDispatcher::OnAbort(int transaction_id) { | 244 void IndexedDBDispatcher::OnAbort(int transaction_id) { |
244 WebKit::WebIDBTransactionCallbacks* callbacks = | 245 WebKit::WebIDBTransactionCallbacks* callbacks = |
245 pending_transaction_callbacks_.Lookup(transaction_id); | 246 pending_transaction_callbacks_.Lookup(transaction_id); |
246 DCHECK(callbacks); | 247 DCHECK(callbacks); |
247 callbacks->onAbort(); | 248 callbacks->onAbort(); |
248 pending_transaction_callbacks_.Remove(transaction_id); | 249 pending_transaction_callbacks_.Remove(transaction_id); |
249 } | 250 } |
OLD | NEW |