Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 252633003: Introduce worker_devtools_agent_route_id for EmbeddedWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests failure Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 new WebSocketDispatcherHost(GetID(), websocket_request_context_callback)); 755 new WebSocketDispatcherHost(GetID(), websocket_request_context_callback));
756 756
757 message_port_message_filter_ = new MessagePortMessageFilter( 757 message_port_message_filter_ = new MessagePortMessageFilter(
758 base::Bind(&RenderWidgetHelper::GetNextRoutingID, 758 base::Bind(&RenderWidgetHelper::GetNextRoutingID,
759 base::Unretained(widget_helper_.get()))); 759 base::Unretained(widget_helper_.get())));
760 AddFilter(message_port_message_filter_); 760 AddFilter(message_port_message_filter_);
761 761
762 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = 762 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter =
763 new ServiceWorkerDispatcherHost(GetID(), message_port_message_filter_); 763 new ServiceWorkerDispatcherHost(GetID(), message_port_message_filter_);
764 service_worker_filter->Init( 764 service_worker_filter->Init(
765 storage_partition_impl_->GetServiceWorkerContext()); 765 storage_partition_impl_->GetServiceWorkerContext(),
766 base::Bind(&RenderWidgetHelper::GetNextRoutingID, widget_helper_));
michaeln 2014/04/25 19:29:50 ah... this is nice
michaeln 2014/04/25 20:10:34 Here's a thought? Define a new static method and n
766 AddFilter(service_worker_filter); 767 AddFilter(service_worker_filter);
767 768
768 // If "--enable-embedded-shared-worker" is set, we use 769 // If "--enable-embedded-shared-worker" is set, we use
769 // SharedWorkerMessageFilter in stead of WorkerMessageFilter. 770 // SharedWorkerMessageFilter in stead of WorkerMessageFilter.
770 if (WorkerService::EmbeddedSharedWorkerEnabled()) { 771 if (WorkerService::EmbeddedSharedWorkerEnabled()) {
771 AddFilter(new SharedWorkerMessageFilter( 772 AddFilter(new SharedWorkerMessageFilter(
772 GetID(), 773 GetID(),
773 resource_context, 774 resource_context,
774 WorkerStoragePartition( 775 WorkerStoragePartition(
775 storage_partition_impl_->GetURLRequestContext(), 776 storage_partition_impl_->GetURLRequestContext(),
(...skipping 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after
2064 mojo::ScopedMessagePipeHandle handle) { 2065 mojo::ScopedMessagePipeHandle handle) {
2065 if (!mojo_application_host_->did_activate()) 2066 if (!mojo_application_host_->did_activate())
2066 mojo_application_host_->Activate(this, GetHandle()); 2067 mojo_application_host_->Activate(this, GetHandle());
2067 2068
2068 mojo::AllocationScope scope; 2069 mojo::AllocationScope scope;
2069 mojo_application_host_->shell_client()->AcceptConnection(service_name, 2070 mojo_application_host_->shell_client()->AcceptConnection(service_name,
2070 handle.Pass()); 2071 handle.Pass());
2071 } 2072 }
2072 2073
2073 } // namespace content 2074 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698