| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "chrome/browser/profiles/profile.h" | 42 #include "chrome/browser/profiles/profile.h" |
| 43 #include "chrome/browser/renderer_host/web_cache_manager.h" | 43 #include "chrome/browser/renderer_host/web_cache_manager.h" |
| 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/child_process_info.h" | |
| 53 #include "chrome/common/extensions/extension.h" | 52 #include "chrome/common/extensions/extension.h" |
| 54 #include "chrome/common/extensions/extension_icon_set.h" | 53 #include "chrome/common/extensions/extension_icon_set.h" |
| 55 #include "chrome/common/gpu_messages.h" | 54 #include "chrome/common/gpu_messages.h" |
| 56 #include "chrome/common/logging_chrome.h" | 55 #include "chrome/common/logging_chrome.h" |
| 57 #include "chrome/common/net/url_request_context_getter.h" | 56 #include "chrome/common/net/url_request_context_getter.h" |
| 58 #include "chrome/common/pref_names.h" | 57 #include "chrome/common/pref_names.h" |
| 59 #include "chrome/common/process_watcher.h" | 58 #include "chrome/common/process_watcher.h" |
| 60 #include "chrome/common/render_messages.h" | 59 #include "chrome/common/render_messages.h" |
| 61 #include "chrome/common/render_messages_params.h" | 60 #include "chrome/common/render_messages_params.h" |
| 62 #include "chrome/common/result_codes.h" | 61 #include "chrome/common/result_codes.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 83 #include "content/browser/renderer_host/pepper_message_filter.h" | 82 #include "content/browser/renderer_host/pepper_message_filter.h" |
| 84 #include "content/browser/renderer_host/render_message_filter.h" | 83 #include "content/browser/renderer_host/render_message_filter.h" |
| 85 #include "content/browser/renderer_host/render_view_host.h" | 84 #include "content/browser/renderer_host/render_view_host.h" |
| 86 #include "content/browser/renderer_host/render_view_host_delegate.h" | 85 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 87 #include "content/browser/renderer_host/render_widget_helper.h" | 86 #include "content/browser/renderer_host/render_widget_helper.h" |
| 88 #include "content/browser/renderer_host/render_widget_host.h" | 87 #include "content/browser/renderer_host/render_widget_host.h" |
| 89 #include "content/browser/renderer_host/resource_message_filter.h" | 88 #include "content/browser/renderer_host/resource_message_filter.h" |
| 90 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 89 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
| 91 #include "content/browser/speech/speech_input_dispatcher_host.h" | 90 #include "content/browser/speech/speech_input_dispatcher_host.h" |
| 92 #include "content/browser/worker_host/worker_message_filter.h" | 91 #include "content/browser/worker_host/worker_message_filter.h" |
| 92 #include "content/common/child_process_info.h" |
| 93 #include "content/common/child_process_messages.h" | 93 #include "content/common/child_process_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" |
| (...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1295 IPC::PlatformFileForTransit file; | 1295 IPC::PlatformFileForTransit file; |
| 1296 #if defined(OS_POSIX) | 1296 #if defined(OS_POSIX) |
| 1297 file = base::FileDescriptor(model_file, false); | 1297 file = base::FileDescriptor(model_file, false); |
| 1298 #elif defined(OS_WIN) | 1298 #elif defined(OS_WIN) |
| 1299 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1299 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
| 1300 false, DUPLICATE_SAME_ACCESS); | 1300 false, DUPLICATE_SAME_ACCESS); |
| 1301 #endif | 1301 #endif |
| 1302 Send(new ViewMsg_SetPhishingModel(file)); | 1302 Send(new ViewMsg_SetPhishingModel(file)); |
| 1303 } | 1303 } |
| 1304 } | 1304 } |
| OLD | NEW |