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

Side by Side Diff: content/child/service_worker/web_service_worker_provider_impl.cc

Issue 1318953002: [ServiceWorker] Use appopriate type parameters for WebCallbacks (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « content/child/service_worker/service_worker_dispatcher.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/service_worker/web_service_worker_provider_impl.h" 5 #include "content/child/service_worker/web_service_worker_provider_impl.h"
6 6
7 #include "content/child/service_worker/service_worker_dispatcher.h" 7 #include "content/child/service_worker/service_worker_dispatcher.h"
8 #include "content/child/service_worker/service_worker_handle_reference.h" 8 #include "content/child/service_worker/service_worker_handle_reference.h"
9 #include "content/child/service_worker/service_worker_provider_context.h" 9 #include "content/child/service_worker/service_worker_provider_context.h"
10 #include "content/child/service_worker/web_service_worker_impl.h" 10 #include "content/child/service_worker/web_service_worker_impl.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void WebServiceWorkerProviderImpl::registerServiceWorker( 54 void WebServiceWorkerProviderImpl::registerServiceWorker(
55 const WebURL& pattern, 55 const WebURL& pattern,
56 const WebURL& script_url, 56 const WebURL& script_url,
57 WebServiceWorkerRegistrationCallbacks* callbacks) { 57 WebServiceWorkerRegistrationCallbacks* callbacks) {
58 GetDispatcher()->RegisterServiceWorker( 58 GetDispatcher()->RegisterServiceWorker(
59 context_->provider_id(), pattern, script_url, callbacks); 59 context_->provider_id(), pattern, script_url, callbacks);
60 } 60 }
61 61
62 void WebServiceWorkerProviderImpl::getRegistration( 62 void WebServiceWorkerProviderImpl::getRegistration(
63 const blink::WebURL& document_url, 63 const blink::WebURL& document_url,
64 WebServiceWorkerRegistrationCallbacks* callbacks) { 64 WebServiceWorkerGetRegistrationCallbacks* callbacks) {
65 GetDispatcher()->GetRegistration( 65 GetDispatcher()->GetRegistration(
66 context_->provider_id(), document_url, callbacks); 66 context_->provider_id(), document_url, callbacks);
67 } 67 }
68 68
69 void WebServiceWorkerProviderImpl::getRegistrations( 69 void WebServiceWorkerProviderImpl::getRegistrations(
70 WebServiceWorkerGetRegistrationsCallbacks* callbacks) { 70 WebServiceWorkerGetRegistrationsCallbacks* callbacks) {
71 GetDispatcher()->GetRegistrations( 71 GetDispatcher()->GetRegistrations(
72 context_->provider_id(), callbacks); 72 context_->provider_id(), callbacks);
73 } 73 }
74 74
(...skipping 25 matching lines...) Expand all
100 ServiceWorkerDispatcher::GetThreadSpecificInstance(); 100 ServiceWorkerDispatcher::GetThreadSpecificInstance();
101 if (dispatcher) 101 if (dispatcher)
102 dispatcher->RemoveProviderClient(context_->provider_id()); 102 dispatcher->RemoveProviderClient(context_->provider_id());
103 } 103 }
104 104
105 ServiceWorkerDispatcher* WebServiceWorkerProviderImpl::GetDispatcher() { 105 ServiceWorkerDispatcher* WebServiceWorkerProviderImpl::GetDispatcher() {
106 return ServiceWorkerDispatcher::GetThreadSpecificInstance(); 106 return ServiceWorkerDispatcher::GetThreadSpecificInstance();
107 } 107 }
108 108
109 } // namespace content 109 } // namespace content
OLDNEW
« no previous file with comments | « content/child/service_worker/service_worker_dispatcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698