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 <stddef.h> | 7 #include <stddef.h> |
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/guid.h" | 12 #include "base/guid.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "base/process/process.h" | 15 #include "base/process/process.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "content/browser/bad_message.h" | 18 #include "content/browser/bad_message.h" |
19 #include "content/browser/child_process_security_policy_impl.h" | |
20 #include "content/browser/indexed_db/indexed_db_callbacks.h" | 19 #include "content/browser/indexed_db/indexed_db_callbacks.h" |
21 #include "content/browser/indexed_db/indexed_db_connection.h" | 20 #include "content/browser/indexed_db/indexed_db_connection.h" |
22 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 21 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
23 #include "content/browser/indexed_db/indexed_db_cursor.h" | 22 #include "content/browser/indexed_db/indexed_db_cursor.h" |
24 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" | 23 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" |
25 #include "content/browser/indexed_db/indexed_db_metadata.h" | 24 #include "content/browser/indexed_db/indexed_db_metadata.h" |
26 #include "content/browser/indexed_db/indexed_db_pending_connection.h" | 25 #include "content/browser/indexed_db/indexed_db_pending_connection.h" |
27 #include "content/browser/indexed_db/indexed_db_value.h" | 26 #include "content/browser/indexed_db/indexed_db_value.h" |
28 #include "content/browser/renderer_host/render_message_filter.h" | 27 #include "content/browser/renderer_host/render_message_filter.h" |
| 28 #include "content/browser/shared/child_process_security_policy_helper.h" |
29 #include "content/common/indexed_db/indexed_db_messages.h" | 29 #include "content/common/indexed_db/indexed_db_messages.h" |
30 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
31 #include "content/public/browser/user_metrics.h" | 31 #include "content/public/browser/user_metrics.h" |
32 #include "content/public/common/content_switches.h" | 32 #include "content/public/common/content_switches.h" |
33 #include "content/public/common/result_codes.h" | 33 #include "content/public/common/result_codes.h" |
34 #include "storage/browser/blob/blob_data_builder.h" | 34 #include "storage/browser/blob/blob_data_builder.h" |
35 #include "storage/browser/blob/blob_storage_context.h" | 35 #include "storage/browser/blob/blob_storage_context.h" |
36 #include "storage/browser/database/database_util.h" | 36 #include "storage/browser/database/database_util.h" |
37 #include "storage/browser/quota/quota_manager_proxy.h" | 37 #include "storage/browser/quota/quota_manager_proxy.h" |
38 #include "storage/common/database/database_identifier.h" | 38 #include "storage/common/database/database_identifier.h" |
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 DLOG(ERROR) << "Unable to reset prefetch"; | 1042 DLOG(ERROR) << "Unable to reset prefetch"; |
1043 } | 1043 } |
1044 | 1044 |
1045 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( | 1045 void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed( |
1046 int32_t ipc_object_id) { | 1046 int32_t ipc_object_id) { |
1047 DCHECK(parent_->context()->TaskRunner()->RunsTasksOnCurrentThread()); | 1047 DCHECK(parent_->context()->TaskRunner()->RunsTasksOnCurrentThread()); |
1048 parent_->DestroyObject(&map_, ipc_object_id); | 1048 parent_->DestroyObject(&map_, ipc_object_id); |
1049 } | 1049 } |
1050 | 1050 |
1051 } // namespace content | 1051 } // namespace content |
OLD | NEW |