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 17 matching lines...) Expand all Loading... | |
28 #include "base/thread_restrictions.h" | 28 #include "base/thread_restrictions.h" |
29 #include "chrome/browser/appcache/appcache_dispatcher_host.h" | 29 #include "chrome/browser/appcache/appcache_dispatcher_host.h" |
30 #include "chrome/browser/browser_child_process_host.h" | 30 #include "chrome/browser/browser_child_process_host.h" |
31 #include "chrome/browser/browser_process.h" | 31 #include "chrome/browser/browser_process.h" |
32 #include "chrome/browser/child_process_security_policy.h" | 32 #include "chrome/browser/child_process_security_policy.h" |
33 #include "chrome/browser/extensions/extension_event_router.h" | 33 #include "chrome/browser/extensions/extension_event_router.h" |
34 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 34 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
35 #include "chrome/browser/extensions/extension_message_service.h" | 35 #include "chrome/browser/extensions/extension_message_service.h" |
36 #include "chrome/browser/extensions/extensions_service.h" | 36 #include "chrome/browser/extensions/extensions_service.h" |
37 #include "chrome/browser/extensions/user_script_master.h" | 37 #include "chrome/browser/extensions/user_script_master.h" |
38 #include "chrome/browser/geolocation/geolocation_dispatcher_host.h" | |
39 #include "chrome/browser/geolocation/geolocation_permission_context.h" | |
bulach
2010/12/13 14:49:50
I guess you can remove the geolocation_permission_
| |
38 #include "chrome/browser/gpu_process_host.h" | 40 #include "chrome/browser/gpu_process_host.h" |
39 #include "chrome/browser/history/history.h" | 41 #include "chrome/browser/history/history.h" |
40 #include "chrome/browser/io_thread.h" | 42 #include "chrome/browser/io_thread.h" |
41 #include "chrome/browser/platform_util.h" | 43 #include "chrome/browser/platform_util.h" |
42 #include "chrome/browser/plugin_service.h" | 44 #include "chrome/browser/plugin_service.h" |
43 #include "chrome/browser/profiles/profile.h" | 45 #include "chrome/browser/profiles/profile.h" |
44 #include "chrome/browser/renderer_host/audio_renderer_host.h" | 46 #include "chrome/browser/renderer_host/audio_renderer_host.h" |
45 #include "chrome/browser/renderer_host/pepper_file_message_filter.h" | 47 #include "chrome/browser/renderer_host/pepper_file_message_filter.h" |
46 #include "chrome/browser/renderer_host/render_view_host.h" | 48 #include "chrome/browser/renderer_host/render_view_host.h" |
47 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 49 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
381 id(), | 383 id(), |
382 PluginService::GetInstance(), | 384 PluginService::GetInstance(), |
383 g_browser_process->print_job_manager(), | 385 g_browser_process->print_job_manager(), |
384 profile(), | 386 profile(), |
385 widget_helper_)); | 387 widget_helper_)); |
386 channel_->AddFilter(resource_message_filter); | 388 channel_->AddFilter(resource_message_filter); |
387 | 389 |
388 channel_->AddFilter(new AudioRendererHost()); | 390 channel_->AddFilter(new AudioRendererHost()); |
389 channel_->AddFilter( | 391 channel_->AddFilter( |
390 new AppCacheDispatcherHost(profile()->GetRequestContext(), id())); | 392 new AppCacheDispatcherHost(profile()->GetRequestContext(), id())); |
393 channel_->AddFilter( | |
394 GeolocationDispatcherHost::New( | |
395 id(), profile()->GetGeolocationPermissionContext())); | |
391 channel_->AddFilter(new PepperFileMessageFilter(id(), profile())); | 396 channel_->AddFilter(new PepperFileMessageFilter(id(), profile())); |
392 } | 397 } |
393 | 398 |
394 int BrowserRenderProcessHost::GetNextRoutingID() { | 399 int BrowserRenderProcessHost::GetNextRoutingID() { |
395 return widget_helper_->GetNextRoutingID(); | 400 return widget_helper_->GetNextRoutingID(); |
396 } | 401 } |
397 | 402 |
398 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) { | 403 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) { |
399 widget_helper_->CancelResourceRequests(render_widget_id); | 404 widget_helper_->CancelResourceRequests(render_widget_id); |
400 } | 405 } |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1207 IPC::PlatformFileForTransit file; | 1212 IPC::PlatformFileForTransit file; |
1208 #if defined(OS_POSIX) | 1213 #if defined(OS_POSIX) |
1209 file = base::FileDescriptor(model_file, false); | 1214 file = base::FileDescriptor(model_file, false); |
1210 #elif defined(OS_WIN) | 1215 #elif defined(OS_WIN) |
1211 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1216 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
1212 false, DUPLICATE_SAME_ACCESS); | 1217 false, DUPLICATE_SAME_ACCESS); |
1213 #endif | 1218 #endif |
1214 Send(new ViewMsg_SetPhishingModel(file)); | 1219 Send(new ViewMsg_SetPhishingModel(file)); |
1215 } | 1220 } |
1216 } | 1221 } |
OLD | NEW |