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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 #include "content/common/in_process_child_thread_params.h" | 123 #include "content/common/in_process_child_thread_params.h" |
124 #include "content/common/mojo/channel_init.h" | 124 #include "content/common/mojo/channel_init.h" |
125 #include "content/common/mojo/mojo_messages.h" | 125 #include "content/common/mojo/mojo_messages.h" |
126 #include "content/common/mojo/mojo_shell_connection_impl.h" | 126 #include "content/common/mojo/mojo_shell_connection_impl.h" |
127 #include "content/common/render_process_messages.h" | 127 #include "content/common/render_process_messages.h" |
128 #include "content/common/resource_messages.h" | 128 #include "content/common/resource_messages.h" |
129 #include "content/common/site_isolation_policy.h" | 129 #include "content/common/site_isolation_policy.h" |
130 #include "content/common/view_messages.h" | 130 #include "content/common/view_messages.h" |
131 #include "content/gpu/gpu_host_messages.h" | 131 #include "content/gpu/gpu_host_messages.h" |
132 #include "content/public/browser/browser_context.h" | 132 #include "content/public/browser/browser_context.h" |
| 133 #include "content/public/browser/browser_thread.h" |
133 #include "content/public/browser/content_browser_client.h" | 134 #include "content/public/browser/content_browser_client.h" |
134 #include "content/public/browser/navigator_connect_context.h" | 135 #include "content/public/browser/navigator_connect_context.h" |
135 #include "content/public/browser/notification_service.h" | 136 #include "content/public/browser/notification_service.h" |
136 #include "content/public/browser/notification_types.h" | 137 #include "content/public/browser/notification_types.h" |
137 #include "content/public/browser/render_process_host_factory.h" | 138 #include "content/public/browser/render_process_host_factory.h" |
138 #include "content/public/browser/render_process_host_observer.h" | 139 #include "content/public/browser/render_process_host_observer.h" |
139 #include "content/public/browser/render_widget_host.h" | 140 #include "content/public/browser/render_widget_host.h" |
140 #include "content/public/browser/render_widget_host_iterator.h" | 141 #include "content/public/browser/render_widget_host_iterator.h" |
141 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" | 142 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" |
142 #include "content/public/browser/resource_context.h" | 143 #include "content/public/browser/resource_context.h" |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 | 725 |
725 channel_connected_ = false; | 726 channel_connected_ = false; |
726 sent_render_process_ready_ = false; | 727 sent_render_process_ready_ = false; |
727 | 728 |
728 // Setup the IPC channel. | 729 // Setup the IPC channel. |
729 const std::string channel_id = | 730 const std::string channel_id = |
730 IPC::Channel::GenerateVerifiedChannelID(std::string()); | 731 IPC::Channel::GenerateVerifiedChannelID(std::string()); |
731 channel_ = CreateChannelProxy(channel_id); | 732 channel_ = CreateChannelProxy(channel_id); |
732 #if USE_ATTACHMENT_BROKER | 733 #if USE_ATTACHMENT_BROKER |
733 IPC::AttachmentBroker::GetGlobal()->RegisterCommunicationChannel( | 734 IPC::AttachmentBroker::GetGlobal()->RegisterCommunicationChannel( |
734 channel_.get()); | 735 channel_.get(), content::BrowserThread::GetMessageLoopProxyForThread( |
| 736 content::BrowserThread::IO)); |
735 #endif | 737 #endif |
736 | 738 |
737 // Setup the Mojo channel. | 739 // Setup the Mojo channel. |
738 mojo_application_host_->Init(); | 740 mojo_application_host_->Init(); |
739 | 741 |
740 // Call the embedder first so that their IPC filters have priority. | 742 // Call the embedder first so that their IPC filters have priority. |
741 GetContentClient()->browser()->RenderProcessWillLaunch(this); | 743 GetContentClient()->browser()->RenderProcessWillLaunch(this); |
742 | 744 |
743 CreateMessageFilters(); | 745 CreateMessageFilters(); |
744 RegisterMojoServices(); | 746 RegisterMojoServices(); |
(...skipping 2068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2813 | 2815 |
2814 // Skip widgets in other processes. | 2816 // Skip widgets in other processes. |
2815 if (rvh->GetProcess()->GetID() != GetID()) | 2817 if (rvh->GetProcess()->GetID() != GetID()) |
2816 continue; | 2818 continue; |
2817 | 2819 |
2818 rvh->OnWebkitPreferencesChanged(); | 2820 rvh->OnWebkitPreferencesChanged(); |
2819 } | 2821 } |
2820 } | 2822 } |
2821 | 2823 |
2822 } // namespace content | 2824 } // namespace content |
OLD | NEW |