OLD | NEW |
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 Loading... |
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 |
OLD | NEW |