| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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/logging_chrome.h" | 54 #include "chrome/common/logging_chrome.h" |
| 55 #include "chrome/common/net/url_request_context_getter.h" | 55 #include "chrome/common/net/url_request_context_getter.h" |
| 56 #include "chrome/common/pref_names.h" | 56 #include "chrome/common/pref_names.h" |
| 57 #include "chrome/common/render_messages.h" | 57 #include "chrome/common/render_messages.h" |
| 58 #include "chrome/common/render_messages_params.h" | 58 #include "chrome/common/render_messages_params.h" |
| 59 #include "chrome/common/safebrowsing_messages.h" |
| 59 #include "chrome/renderer/render_process_impl.h" | 60 #include "chrome/renderer/render_process_impl.h" |
| 60 #include "chrome/renderer/render_thread.h" | 61 #include "chrome/renderer/render_thread.h" |
| 61 #include "content/browser/appcache/appcache_dispatcher_host.h" | 62 #include "content/browser/appcache/appcache_dispatcher_host.h" |
| 62 #include "content/browser/browser_child_process_host.h" | 63 #include "content/browser/browser_child_process_host.h" |
| 63 #include "content/browser/child_process_security_policy.h" | 64 #include "content/browser/child_process_security_policy.h" |
| 64 #include "content/browser/device_orientation/message_filter.h" | 65 #include "content/browser/device_orientation/message_filter.h" |
| 65 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | 66 #include "content/browser/geolocation/geolocation_dispatcher_host.h" |
| 66 #include "content/browser/gpu_process_host.h" | 67 #include "content/browser/gpu_process_host.h" |
| 67 #include "content/browser/in_process_webkit/dom_storage_message_filter.h" | 68 #include "content/browser/in_process_webkit/dom_storage_message_filter.h" |
| 68 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 69 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
| (...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1298 void BrowserRenderProcessHost::OpenPhishingModelDone( | 1299 void BrowserRenderProcessHost::OpenPhishingModelDone( |
| 1299 base::PlatformFile model_file) { | 1300 base::PlatformFile model_file) { |
| 1300 if (model_file != base::kInvalidPlatformFileValue) { | 1301 if (model_file != base::kInvalidPlatformFileValue) { |
| 1301 IPC::PlatformFileForTransit file; | 1302 IPC::PlatformFileForTransit file; |
| 1302 #if defined(OS_POSIX) | 1303 #if defined(OS_POSIX) |
| 1303 file = base::FileDescriptor(model_file, false); | 1304 file = base::FileDescriptor(model_file, false); |
| 1304 #elif defined(OS_WIN) | 1305 #elif defined(OS_WIN) |
| 1305 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1306 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
| 1306 false, DUPLICATE_SAME_ACCESS); | 1307 false, DUPLICATE_SAME_ACCESS); |
| 1307 #endif | 1308 #endif |
| 1308 Send(new ViewMsg_SetPhishingModel(file)); | 1309 Send(new SafeBrowsingMsg_SetPhishingModel(file)); |
| 1309 } | 1310 } |
| 1310 } | 1311 } |
| OLD | NEW |