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/browser/indexed_db/indexed_db_dispatcher_host.h" | 5 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/process.h" | 12 #include "base/process.h" |
13 #include "base/process_util.h" | 13 #include "base/process_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "content/browser/indexed_db/indexed_db_callbacks.h" | 15 #include "content/browser/indexed_db/indexed_db_callbacks.h" |
16 #include "content/browser/indexed_db/indexed_db_connection.h" | 16 #include "content/browser/indexed_db/indexed_db_connection.h" |
17 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 17 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
18 #include "content/browser/indexed_db/indexed_db_cursor.h" | 18 #include "content/browser/indexed_db/indexed_db_cursor.h" |
19 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" | 19 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" |
20 #include "content/browser/indexed_db/indexed_db_metadata.h" | 20 #include "content/browser/indexed_db/indexed_db_metadata.h" |
21 #include "content/browser/renderer_host/render_message_filter.h" | 21 #include "content/browser/renderer_host/render_message_filter.h" |
22 #include "content/common/indexed_db/indexed_db_messages.h" | 22 #include "content/common/indexed_db/indexed_db_messages.h" |
23 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
24 #include "content/public/browser/user_metrics.h" | 24 #include "content/public/browser/user_metrics.h" |
25 #include "content/public/common/content_switches.h" | 25 #include "content/public/common/content_switches.h" |
26 #include "content/public/common/result_codes.h" | 26 #include "content/public/common/result_codes.h" |
27 #include "googleurl/src/gurl.h" | |
28 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" | 27 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" |
| 28 #include "url/gurl.h" |
29 #include "webkit/browser/database/database_util.h" | 29 #include "webkit/browser/database/database_util.h" |
30 #include "webkit/common/database/database_identifier.h" | 30 #include "webkit/common/database/database_identifier.h" |
31 | 31 |
32 using webkit_database::DatabaseUtil; | 32 using webkit_database::DatabaseUtil; |
33 using WebKit::WebIDBKey; | 33 using WebKit::WebIDBKey; |
34 | 34 |
35 namespace content { | 35 namespace content { |
36 | 36 |
37 IndexedDBDispatcherHost::IndexedDBDispatcherHost( | 37 IndexedDBDispatcherHost::IndexedDBDispatcherHost( |
38 int ipc_process_id, | 38 int ipc_process_id, |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 } | 851 } |
852 | 852 |
853 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( | 853 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( |
854 int32 ipc_object_id) { | 854 int32 ipc_object_id) { |
855 DCHECK( | 855 DCHECK( |
856 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); | 856 parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); |
857 parent_->DestroyObject(&map_, ipc_object_id); | 857 parent_->DestroyObject(&map_, ipc_object_id); |
858 } | 858 } |
859 | 859 |
860 } // namespace content | 860 } // namespace content |
OLD | NEW |