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> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #include "chrome/browser/spellcheck_message_filter.h" | 48 #include "chrome/browser/spellcheck_message_filter.h" |
49 #include "chrome/browser/metrics/user_metrics.h" | 49 #include "chrome/browser/metrics/user_metrics.h" |
50 #include "chrome/browser/visitedlink/visitedlink_master.h" | 50 #include "chrome/browser/visitedlink/visitedlink_master.h" |
51 #include "chrome/common/chrome_paths.h" | 51 #include "chrome/common/chrome_paths.h" |
52 #include "chrome/common/chrome_switches.h" | 52 #include "chrome/common/chrome_switches.h" |
53 #include "chrome/common/extensions/extension.h" | 53 #include "chrome/common/extensions/extension.h" |
54 #include "chrome/common/extensions/extension_icon_set.h" | 54 #include "chrome/common/extensions/extension_icon_set.h" |
55 #include "chrome/common/logging_chrome.h" | 55 #include "chrome/common/logging_chrome.h" |
56 #include "chrome/common/net/url_request_context_getter.h" | 56 #include "chrome/common/net/url_request_context_getter.h" |
57 #include "chrome/common/pref_names.h" | 57 #include "chrome/common/pref_names.h" |
58 #include "chrome/common/process_watcher.h" | |
59 #include "chrome/common/render_messages.h" | 58 #include "chrome/common/render_messages.h" |
60 #include "chrome/common/render_messages_params.h" | 59 #include "chrome/common/render_messages_params.h" |
61 #include "chrome/common/result_codes.h" | |
62 #include "chrome/renderer/render_process_impl.h" | 60 #include "chrome/renderer/render_process_impl.h" |
63 #include "chrome/renderer/render_thread.h" | 61 #include "chrome/renderer/render_thread.h" |
64 #include "content/browser/appcache/appcache_dispatcher_host.h" | 62 #include "content/browser/appcache/appcache_dispatcher_host.h" |
65 #include "content/browser/browser_child_process_host.h" | 63 #include "content/browser/browser_child_process_host.h" |
66 #include "content/browser/child_process_security_policy.h" | 64 #include "content/browser/child_process_security_policy.h" |
67 #include "content/browser/device_orientation/message_filter.h" | 65 #include "content/browser/device_orientation/message_filter.h" |
68 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | 66 #include "content/browser/geolocation/geolocation_dispatcher_host.h" |
69 #include "content/browser/gpu_process_host.h" | 67 #include "content/browser/gpu_process_host.h" |
70 #include "content/browser/in_process_webkit/dom_storage_message_filter.h" | 68 #include "content/browser/in_process_webkit/dom_storage_message_filter.h" |
71 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 69 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
(...skipping 15 matching lines...) Expand all Loading... |
87 #include "content/browser/renderer_host/render_widget_helper.h" | 85 #include "content/browser/renderer_host/render_widget_helper.h" |
88 #include "content/browser/renderer_host/render_widget_host.h" | 86 #include "content/browser/renderer_host/render_widget_host.h" |
89 #include "content/browser/renderer_host/resource_message_filter.h" | 87 #include "content/browser/renderer_host/resource_message_filter.h" |
90 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 88 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
91 #include "content/browser/speech/speech_input_dispatcher_host.h" | 89 #include "content/browser/speech/speech_input_dispatcher_host.h" |
92 #include "content/browser/worker_host/worker_message_filter.h" | 90 #include "content/browser/worker_host/worker_message_filter.h" |
93 #include "content/common/child_process_info.h" | 91 #include "content/common/child_process_info.h" |
94 #include "content/common/child_process_messages.h" | 92 #include "content/common/child_process_messages.h" |
95 #include "content/common/gpu_messages.h" | 93 #include "content/common/gpu_messages.h" |
96 #include "content/common/notification_service.h" | 94 #include "content/common/notification_service.h" |
| 95 #include "content/common/process_watcher.h" |
97 #include "content/common/resource_messages.h" | 96 #include "content/common/resource_messages.h" |
| 97 #include "content/common/result_codes.h" |
98 #include "grit/generated_resources.h" | 98 #include "grit/generated_resources.h" |
99 #include "ipc/ipc_logging.h" | 99 #include "ipc/ipc_logging.h" |
100 #include "ipc/ipc_platform_file.h" | 100 #include "ipc/ipc_platform_file.h" |
101 #include "ipc/ipc_switches.h" | 101 #include "ipc/ipc_switches.h" |
102 #include "media/base/media_switches.h" | 102 #include "media/base/media_switches.h" |
103 #include "ui/base/ui_base_switches.h" | 103 #include "ui/base/ui_base_switches.h" |
104 #include "webkit/fileapi/file_system_path_manager.h" | 104 #include "webkit/fileapi/file_system_path_manager.h" |
105 #include "webkit/glue/resource_type.h" | 105 #include "webkit/glue/resource_type.h" |
106 #include "webkit/plugins/plugin_switches.h" | 106 #include "webkit/plugins/plugin_switches.h" |
107 | 107 |
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1304 IPC::PlatformFileForTransit file; | 1304 IPC::PlatformFileForTransit file; |
1305 #if defined(OS_POSIX) | 1305 #if defined(OS_POSIX) |
1306 file = base::FileDescriptor(model_file, false); | 1306 file = base::FileDescriptor(model_file, false); |
1307 #elif defined(OS_WIN) | 1307 #elif defined(OS_WIN) |
1308 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1308 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
1309 false, DUPLICATE_SAME_ACCESS); | 1309 false, DUPLICATE_SAME_ACCESS); |
1310 #endif | 1310 #endif |
1311 Send(new ViewMsg_SetPhishingModel(file)); | 1311 Send(new ViewMsg_SetPhishingModel(file)); |
1312 } | 1312 } |
1313 } | 1313 } |
OLD | NEW |