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

Side by Side Diff: content/child/navigator_connect/service_port_dispatcher_impl.cc

Issue 1254023006: Move ServiceWorker public headers to public/{web,platform}/modules/serviceworker (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "content/child/navigator_connect/service_port_dispatcher_impl.h" 5 #include "content/child/navigator_connect/service_port_dispatcher_impl.h"
6 6
7 #include "base/trace_event/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "mojo/common/common_type_converters.h" 8 #include "mojo/common/common_type_converters.h"
9 #include "mojo/common/url_type_converters.h" 9 #include "mojo/common/url_type_converters.h"
10 #include "third_party/WebKit/public/web/WebServiceWorkerContextProxy.h" 10 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextProxy.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 namespace { 14 namespace {
15 15
16 class WebConnectCallbacksImpl 16 class WebConnectCallbacksImpl
17 : public blink::WebServicePortConnectEventCallbacks { 17 : public blink::WebServicePortConnectEventCallbacks {
18 public: 18 public:
19 WebConnectCallbacksImpl( 19 WebConnectCallbacksImpl(
20 const ServicePortDispatcher::ConnectCallback& callback) 20 const ServicePortDispatcher::ConnectCallback& callback)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 mojo::String("")); 69 mojo::String(""));
70 return; 70 return;
71 } 71 }
72 TRACE_EVENT0("ServiceWorker", "ServicePortDispatcherImpl::Connect"); 72 TRACE_EVENT0("ServiceWorker", "ServicePortDispatcherImpl::Connect");
73 proxy_->dispatchServicePortConnectEvent(new WebConnectCallbacksImpl(callback), 73 proxy_->dispatchServicePortConnectEvent(new WebConnectCallbacksImpl(callback),
74 target_url.To<GURL>(), 74 target_url.To<GURL>(),
75 origin.To<base::string16>(), port_id); 75 origin.To<base::string16>(), port_id);
76 } 76 }
77 77
78 } // namespace content 78 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_version.h ('k') | content/child/service_worker/service_worker_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698