| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 73 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
| 74 #include "content/browser/loader/resource_message_filter.h" | 74 #include "content/browser/loader/resource_message_filter.h" |
| 75 #include "content/browser/loader/resource_scheduler_filter.h" | 75 #include "content/browser/loader/resource_scheduler_filter.h" |
| 76 #include "content/browser/media/capture/audio_mirroring_manager.h" | 76 #include "content/browser/media/capture/audio_mirroring_manager.h" |
| 77 #include "content/browser/media/media_internals.h" | 77 #include "content/browser/media/media_internals.h" |
| 78 #include "content/browser/media/midi_host.h" | 78 #include "content/browser/media/midi_host.h" |
| 79 #include "content/browser/memory/memory_message_filter.h" | 79 #include "content/browser/memory/memory_message_filter.h" |
| 80 #include "content/browser/message_port_message_filter.h" | 80 #include "content/browser/message_port_message_filter.h" |
| 81 #include "content/browser/mime_registry_message_filter.h" | 81 #include "content/browser/mime_registry_message_filter.h" |
| 82 #include "content/browser/mojo/mojo_application_host.h" | 82 #include "content/browser/mojo/mojo_application_host.h" |
| 83 #include "content/browser/mojo/mojo_shell_client_host.h" | 83 #include "content/browser/mojo/mojo_child_connection.h" |
| 84 #include "content/browser/navigator_connect/service_port_service_impl.h" | 84 #include "content/browser/navigator_connect/service_port_service_impl.h" |
| 85 #include "content/browser/notifications/notification_message_filter.h" | 85 #include "content/browser/notifications/notification_message_filter.h" |
| 86 #include "content/browser/permissions/permission_service_context.h" | 86 #include "content/browser/permissions/permission_service_context.h" |
| 87 #include "content/browser/permissions/permission_service_impl.h" | 87 #include "content/browser/permissions/permission_service_impl.h" |
| 88 #include "content/browser/profiler_message_filter.h" | 88 #include "content/browser/profiler_message_filter.h" |
| 89 #include "content/browser/push_messaging/push_messaging_message_filter.h" | 89 #include "content/browser/push_messaging/push_messaging_message_filter.h" |
| 90 #include "content/browser/quota_dispatcher_host.h" | 90 #include "content/browser/quota_dispatcher_host.h" |
| 91 #include "content/browser/renderer_host/clipboard_message_filter.h" | 91 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 92 #include "content/browser/renderer_host/database_message_filter.h" | 92 #include "content/browser/renderer_host/database_message_filter.h" |
| 93 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 93 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 void RenderProcessHostImpl::EnableSendQueue() { | 694 void RenderProcessHostImpl::EnableSendQueue() { |
| 695 is_initialized_ = false; | 695 is_initialized_ = false; |
| 696 } | 696 } |
| 697 | 697 |
| 698 bool RenderProcessHostImpl::Init() { | 698 bool RenderProcessHostImpl::Init() { |
| 699 // calling Init() more than once does nothing, this makes it more convenient | 699 // calling Init() more than once does nothing, this makes it more convenient |
| 700 // for the view host which may not be sure in some cases | 700 // for the view host which may not be sure in some cases |
| 701 if (channel_) | 701 if (channel_) |
| 702 return true; | 702 return true; |
| 703 | 703 |
| 704 shell_pipe_token_ = RegisterChildWithExternalShell(id_, instance_id_++, this); | 704 shell_pipe_token_ = MojoConnectToChild(id_, instance_id_++, this); |
| 705 | 705 |
| 706 base::CommandLine::StringType renderer_prefix; | 706 base::CommandLine::StringType renderer_prefix; |
| 707 // A command prefix is something prepended to the command line of the spawned | 707 // A command prefix is something prepended to the command line of the spawned |
| 708 // process. | 708 // process. |
| 709 const base::CommandLine& browser_command_line = | 709 const base::CommandLine& browser_command_line = |
| 710 *base::CommandLine::ForCurrentProcess(); | 710 *base::CommandLine::ForCurrentProcess(); |
| 711 renderer_prefix = | 711 renderer_prefix = |
| 712 browser_command_line.GetSwitchValueNative(switches::kRendererCmdPrefix); | 712 browser_command_line.GetSwitchValueNative(switches::kRendererCmdPrefix); |
| 713 | 713 |
| 714 #if defined(OS_LINUX) | 714 #if defined(OS_LINUX) |
| (...skipping 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2813 | 2813 |
| 2814 // Skip widgets in other processes. | 2814 // Skip widgets in other processes. |
| 2815 if (rvh->GetProcess()->GetID() != GetID()) | 2815 if (rvh->GetProcess()->GetID() != GetID()) |
| 2816 continue; | 2816 continue; |
| 2817 | 2817 |
| 2818 rvh->OnWebkitPreferencesChanged(); | 2818 rvh->OnWebkitPreferencesChanged(); |
| 2819 } | 2819 } |
| 2820 } | 2820 } |
| 2821 | 2821 |
| 2822 } // namespace content | 2822 } // namespace content |
| OLD | NEW |