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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "chrome/browser/safe_browsing/client_side_detection_service.h" | 44 #include "chrome/browser/safe_browsing/client_side_detection_service.h" |
45 #include "chrome/browser/search_engines/search_provider_install_state_message_fi
lter.h" | 45 #include "chrome/browser/search_engines/search_provider_install_state_message_fi
lter.h" |
46 #include "chrome/browser/spellcheck_host.h" | 46 #include "chrome/browser/spellcheck_host.h" |
47 #include "chrome/browser/spellcheck_message_filter.h" | 47 #include "chrome/browser/spellcheck_message_filter.h" |
48 #include "chrome/browser/metrics/user_metrics.h" | 48 #include "chrome/browser/metrics/user_metrics.h" |
49 #include "chrome/browser/visitedlink/visitedlink_master.h" | 49 #include "chrome/browser/visitedlink/visitedlink_master.h" |
50 #include "chrome/common/chrome_paths.h" | 50 #include "chrome/common/chrome_paths.h" |
51 #include "chrome/common/chrome_switches.h" | 51 #include "chrome/common/chrome_switches.h" |
52 #include "chrome/common/extensions/extension.h" | 52 #include "chrome/common/extensions/extension.h" |
53 #include "chrome/common/extensions/extension_icon_set.h" | 53 #include "chrome/common/extensions/extension_icon_set.h" |
54 #include "chrome/common/gpu_messages.h" | |
55 #include "chrome/common/logging_chrome.h" | 54 #include "chrome/common/logging_chrome.h" |
56 #include "chrome/common/net/url_request_context_getter.h" | 55 #include "chrome/common/net/url_request_context_getter.h" |
57 #include "chrome/common/pref_names.h" | 56 #include "chrome/common/pref_names.h" |
58 #include "chrome/common/process_watcher.h" | 57 #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" | 60 #include "chrome/common/result_codes.h" |
62 #include "chrome/renderer/render_process_impl.h" | 61 #include "chrome/renderer/render_process_impl.h" |
63 #include "chrome/renderer/render_thread.h" | 62 #include "chrome/renderer/render_thread.h" |
64 #include "content/browser/appcache/appcache_dispatcher_host.h" | 63 #include "content/browser/appcache/appcache_dispatcher_host.h" |
(...skipping 19 matching lines...) Expand all Loading... |
84 #include "content/browser/renderer_host/render_view_host.h" | 83 #include "content/browser/renderer_host/render_view_host.h" |
85 #include "content/browser/renderer_host/render_view_host_delegate.h" | 84 #include "content/browser/renderer_host/render_view_host_delegate.h" |
86 #include "content/browser/renderer_host/render_widget_helper.h" | 85 #include "content/browser/renderer_host/render_widget_helper.h" |
87 #include "content/browser/renderer_host/render_widget_host.h" | 86 #include "content/browser/renderer_host/render_widget_host.h" |
88 #include "content/browser/renderer_host/resource_message_filter.h" | 87 #include "content/browser/renderer_host/resource_message_filter.h" |
89 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 88 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
90 #include "content/browser/speech/speech_input_dispatcher_host.h" | 89 #include "content/browser/speech/speech_input_dispatcher_host.h" |
91 #include "content/browser/worker_host/worker_message_filter.h" | 90 #include "content/browser/worker_host/worker_message_filter.h" |
92 #include "content/common/child_process_info.h" | 91 #include "content/common/child_process_info.h" |
93 #include "content/common/child_process_messages.h" | 92 #include "content/common/child_process_messages.h" |
| 93 #include "content/common/gpu_messages.h" |
94 #include "content/common/notification_service.h" | 94 #include "content/common/notification_service.h" |
95 #include "content/common/resource_messages.h" | 95 #include "content/common/resource_messages.h" |
96 #include "grit/generated_resources.h" | 96 #include "grit/generated_resources.h" |
97 #include "ipc/ipc_logging.h" | 97 #include "ipc/ipc_logging.h" |
98 #include "ipc/ipc_platform_file.h" | 98 #include "ipc/ipc_platform_file.h" |
99 #include "ipc/ipc_switches.h" | 99 #include "ipc/ipc_switches.h" |
100 #include "media/base/media_switches.h" | 100 #include "media/base/media_switches.h" |
101 #include "ui/base/ui_base_switches.h" | 101 #include "ui/base/ui_base_switches.h" |
102 #include "webkit/fileapi/file_system_path_manager.h" | 102 #include "webkit/fileapi/file_system_path_manager.h" |
103 #include "webkit/plugins/plugin_switches.h" | 103 #include "webkit/plugins/plugin_switches.h" |
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1294 IPC::PlatformFileForTransit file; | 1294 IPC::PlatformFileForTransit file; |
1295 #if defined(OS_POSIX) | 1295 #if defined(OS_POSIX) |
1296 file = base::FileDescriptor(model_file, false); | 1296 file = base::FileDescriptor(model_file, false); |
1297 #elif defined(OS_WIN) | 1297 #elif defined(OS_WIN) |
1298 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1298 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
1299 false, DUPLICATE_SAME_ACCESS); | 1299 false, DUPLICATE_SAME_ACCESS); |
1300 #endif | 1300 #endif |
1301 Send(new ViewMsg_SetPhishingModel(file)); | 1301 Send(new ViewMsg_SetPhishingModel(file)); |
1302 } | 1302 } |
1303 } | 1303 } |
OLD | NEW |