OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 #include "chrome/common/result_codes.h" | 82 #include "chrome/common/result_codes.h" |
83 #include "chrome/renderer/render_process_impl.h" | 83 #include "chrome/renderer/render_process_impl.h" |
84 #include "chrome/renderer/render_thread.h" | 84 #include "chrome/renderer/render_thread.h" |
85 #include "grit/generated_resources.h" | 85 #include "grit/generated_resources.h" |
86 #include "ipc/ipc_logging.h" | 86 #include "ipc/ipc_logging.h" |
87 #include "ipc/ipc_message.h" | 87 #include "ipc/ipc_message.h" |
88 #include "ipc/ipc_platform_file.h" | 88 #include "ipc/ipc_platform_file.h" |
89 #include "ipc/ipc_switches.h" | 89 #include "ipc/ipc_switches.h" |
90 #include "media/base/media_switches.h" | 90 #include "media/base/media_switches.h" |
91 #include "webkit/fileapi/file_system_path_manager.h" | 91 #include "webkit/fileapi/file_system_path_manager.h" |
92 #include "webkit/glue/plugins/plugin_switches.h" | 92 #include "webkit/plugins/plugin_switches.h" |
93 | 93 |
94 #if defined(OS_WIN) | 94 #if defined(OS_WIN) |
95 #include "app/win_util.h" | 95 #include "app/win_util.h" |
96 #endif | 96 #endif |
97 | 97 |
98 using WebKit::WebCache; | 98 using WebKit::WebCache; |
99 | 99 |
100 #include "third_party/skia/include/core/SkBitmap.h" | 100 #include "third_party/skia/include/core/SkBitmap.h" |
101 | 101 |
102 // TODO(mpcomplete): Remove this after fixing | 102 // TODO(mpcomplete): Remove this after fixing |
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1284 IPC::PlatformFileForTransit file; | 1284 IPC::PlatformFileForTransit file; |
1285 #if defined(OS_POSIX) | 1285 #if defined(OS_POSIX) |
1286 file = base::FileDescriptor(model_file, false); | 1286 file = base::FileDescriptor(model_file, false); |
1287 #elif defined(OS_WIN) | 1287 #elif defined(OS_WIN) |
1288 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1288 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
1289 false, DUPLICATE_SAME_ACCESS); | 1289 false, DUPLICATE_SAME_ACCESS); |
1290 #endif | 1290 #endif |
1291 Send(new ViewMsg_SetPhishingModel(file)); | 1291 Send(new ViewMsg_SetPhishingModel(file)); |
1292 } | 1292 } |
1293 } | 1293 } |
OLD | NEW |