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

Side by Side Diff: content/child/service_worker/service_worker_dispatcher.h

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 | « no previous file | content/child/service_worker/service_worker_dispatcher.cc » ('j') | 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 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Corresponds to ServiceWorkerRegistration.update(). 85 // Corresponds to ServiceWorkerRegistration.update().
86 void UpdateServiceWorker(int provider_id, 86 void UpdateServiceWorker(int provider_id,
87 int64 registration_id, 87 int64 registration_id,
88 WebServiceWorkerUpdateCallbacks* callbacks); 88 WebServiceWorkerUpdateCallbacks* callbacks);
89 // Corresponds to ServiceWorkerRegistration.unregister(). 89 // Corresponds to ServiceWorkerRegistration.unregister().
90 void UnregisterServiceWorker( 90 void UnregisterServiceWorker(
91 int provider_id, 91 int provider_id,
92 int64 registration_id, 92 int64 registration_id,
93 WebServiceWorkerUnregistrationCallbacks* callbacks); 93 WebServiceWorkerUnregistrationCallbacks* callbacks);
94 // Corresponds to navigator.serviceWorker.getRegistration(). 94 // Corresponds to navigator.serviceWorker.getRegistration().
95 void GetRegistration( 95 void GetRegistration(int provider_id,
96 int provider_id, 96 const GURL& document_url,
97 const GURL& document_url, 97 WebServiceWorkerGetRegistrationCallbacks* callbacks);
98 WebServiceWorkerRegistrationCallbacks* callbacks);
99 // Corresponds to navigator.serviceWorker.getRegistrations(). 98 // Corresponds to navigator.serviceWorker.getRegistrations().
100 void GetRegistrations( 99 void GetRegistrations(
101 int provider_id, 100 int provider_id,
102 WebServiceWorkerGetRegistrationsCallbacks* callbacks); 101 WebServiceWorkerGetRegistrationsCallbacks* callbacks);
103 102
104 void GetRegistrationForReady( 103 void GetRegistrationForReady(
105 int provider_id, 104 int provider_id,
106 WebServiceWorkerGetRegistrationForReadyCallbacks* callbacks); 105 WebServiceWorkerGetRegistrationForReadyCallbacks* callbacks);
107 106
108 // Called when a new provider context for a document is created. Usually 107 // Called when a new provider context for a document is created. Usually
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 289
291 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 290 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
292 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 291 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
293 292
294 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); 293 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher);
295 }; 294 };
296 295
297 } // namespace content 296 } // namespace content
298 297
299 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 298 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/service_worker/service_worker_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698