OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
7 | 7 |
8 #include "chrome/browser/renderer_host/browser_render_process_host.h" | 8 #include "chrome/browser/renderer_host/browser_render_process_host.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <limits> | 11 #include <limits> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #if defined(OS_POSIX) | 14 #if defined(OS_POSIX) |
15 #include <utility> // for pair<> | 15 #include <utility> // for pair<> |
16 #endif | 16 #endif |
17 | 17 |
18 #include "app/app_switches.h" | 18 #include "app/app_switches.h" |
19 #include "base/callback.h" | 19 #include "base/callback.h" |
20 #include "base/command_line.h" | 20 #include "base/command_line.h" |
21 #include "base/logging.h" | 21 #include "base/logging.h" |
22 #include "base/metrics/field_trial.h" | 22 #include "base/metrics/field_trial.h" |
23 #include "base/metrics/histogram.h" | 23 #include "base/metrics/histogram.h" |
24 #include "base/path_service.h" | 24 #include "base/path_service.h" |
25 #include "base/platform_file.h" | 25 #include "base/platform_file.h" |
26 #include "base/stl_util-inl.h" | 26 #include "base/stl_util-inl.h" |
27 #include "base/string_util.h" | 27 #include "base/string_util.h" |
28 #include "base/threading/thread.h" | 28 #include "base/threading/thread.h" |
29 #include "base/threading/thread_restrictions.h" | 29 #include "base/threading/thread_restrictions.h" |
30 #include "chrome/browser/appcache/appcache_dispatcher_host.h" | |
31 #include "chrome/browser/browser_process.h" | 30 #include "chrome/browser/browser_process.h" |
32 #include "chrome/browser/device_orientation/message_filter.h" | |
33 #include "chrome/browser/extensions/extension_event_router.h" | 31 #include "chrome/browser/extensions/extension_event_router.h" |
34 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 32 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
35 #include "chrome/browser/extensions/extension_message_service.h" | 33 #include "chrome/browser/extensions/extension_message_service.h" |
36 #include "chrome/browser/extensions/extension_service.h" | 34 #include "chrome/browser/extensions/extension_service.h" |
37 #include "chrome/browser/extensions/user_script_master.h" | 35 #include "chrome/browser/extensions/user_script_master.h" |
38 #include "chrome/browser/file_system/file_system_dispatcher_host.h" | |
39 #include "chrome/browser/geolocation/geolocation_dispatcher_host.h" | 36 #include "chrome/browser/geolocation/geolocation_dispatcher_host.h" |
40 #include "chrome/browser/history/history.h" | 37 #include "chrome/browser/history/history.h" |
41 #include "chrome/browser/io_thread.h" | 38 #include "chrome/browser/io_thread.h" |
42 #include "chrome/browser/metrics/user_metrics.h" | 39 #include "chrome/browser/metrics/user_metrics.h" |
43 #include "chrome/browser/platform_util.h" | 40 #include "chrome/browser/platform_util.h" |
44 #include "chrome/browser/profiles/profile.h" | 41 #include "chrome/browser/profiles/profile.h" |
45 #include "chrome/browser/renderer_host/web_cache_manager.h" | 42 #include "chrome/browser/renderer_host/web_cache_manager.h" |
46 #include "chrome/browser/safe_browsing/client_side_detection_service.h" | 43 #include "chrome/browser/safe_browsing/client_side_detection_service.h" |
47 #include "chrome/browser/search_engines/search_provider_install_state_message_fi
lter.h" | 44 #include "chrome/browser/search_engines/search_provider_install_state_message_fi
lter.h" |
48 #include "chrome/browser/speech/speech_input_dispatcher_host.h" | 45 #include "chrome/browser/speech/speech_input_dispatcher_host.h" |
(...skipping 12 matching lines...) Expand all Loading... |
61 #include "chrome/common/logging_chrome.h" | 58 #include "chrome/common/logging_chrome.h" |
62 #include "chrome/common/net/url_request_context_getter.h" | 59 #include "chrome/common/net/url_request_context_getter.h" |
63 #include "chrome/common/notification_service.h" | 60 #include "chrome/common/notification_service.h" |
64 #include "chrome/common/pref_names.h" | 61 #include "chrome/common/pref_names.h" |
65 #include "chrome/common/process_watcher.h" | 62 #include "chrome/common/process_watcher.h" |
66 #include "chrome/common/render_messages.h" | 63 #include "chrome/common/render_messages.h" |
67 #include "chrome/common/render_messages_params.h" | 64 #include "chrome/common/render_messages_params.h" |
68 #include "chrome/common/result_codes.h" | 65 #include "chrome/common/result_codes.h" |
69 #include "chrome/renderer/render_process_impl.h" | 66 #include "chrome/renderer/render_process_impl.h" |
70 #include "chrome/renderer/render_thread.h" | 67 #include "chrome/renderer/render_thread.h" |
| 68 #include "content/browser/appcache/appcache_dispatcher_host.h" |
71 #include "content/browser/browser_child_process_host.h" | 69 #include "content/browser/browser_child_process_host.h" |
72 #include "content/browser/child_process_security_policy.h" | 70 #include "content/browser/child_process_security_policy.h" |
| 71 #include "content/browser/device_orientation/message_filter.h" |
73 #include "content/browser/gpu_process_host.h" | 72 #include "content/browser/gpu_process_host.h" |
74 #include "content/browser/in_process_webkit/dom_storage_message_filter.h" | 73 #include "content/browser/in_process_webkit/dom_storage_message_filter.h" |
75 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 74 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
| 75 #include "content/browser/file_system/file_system_dispatcher_host.h" |
76 #include "content/browser/mime_registry_message_filter.h" | 76 #include "content/browser/mime_registry_message_filter.h" |
77 #include "content/browser/plugin_service.h" | 77 #include "content/browser/plugin_service.h" |
78 #include "content/browser/renderer_host/audio_renderer_host.h" | 78 #include "content/browser/renderer_host/audio_renderer_host.h" |
79 #include "content/browser/renderer_host/blob_message_filter.h" | 79 #include "content/browser/renderer_host/blob_message_filter.h" |
80 #include "content/browser/renderer_host/database_message_filter.h" | 80 #include "content/browser/renderer_host/database_message_filter.h" |
81 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 81 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
82 #include "content/browser/renderer_host/gpu_message_filter.h" | 82 #include "content/browser/renderer_host/gpu_message_filter.h" |
83 #include "content/browser/renderer_host/pepper_file_message_filter.h" | 83 #include "content/browser/renderer_host/pepper_file_message_filter.h" |
84 #include "content/browser/renderer_host/pepper_message_filter.h" | 84 #include "content/browser/renderer_host/pepper_message_filter.h" |
85 #include "content/browser/renderer_host/render_message_filter.h" | 85 #include "content/browser/renderer_host/render_message_filter.h" |
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1280 IPC::PlatformFileForTransit file; | 1280 IPC::PlatformFileForTransit file; |
1281 #if defined(OS_POSIX) | 1281 #if defined(OS_POSIX) |
1282 file = base::FileDescriptor(model_file, false); | 1282 file = base::FileDescriptor(model_file, false); |
1283 #elif defined(OS_WIN) | 1283 #elif defined(OS_WIN) |
1284 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1284 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
1285 false, DUPLICATE_SAME_ACCESS); | 1285 false, DUPLICATE_SAME_ACCESS); |
1286 #endif | 1286 #endif |
1287 Send(new ViewMsg_SetPhishingModel(file)); | 1287 Send(new ViewMsg_SetPhishingModel(file)); |
1288 } | 1288 } |
1289 } | 1289 } |
OLD | NEW |