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

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

Issue 1186803002: ServiceWorker: Route unregister() through WebServiceWorkerRegistration for refactoring (4) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@route_web_sw_reg_2
Patch Set: rebase Created 5 years, 6 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 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // Corresponds to navigator.serviceWorker.register(). 67 // Corresponds to navigator.serviceWorker.register().
68 void RegisterServiceWorker( 68 void RegisterServiceWorker(
69 int provider_id, 69 int provider_id,
70 const GURL& pattern, 70 const GURL& pattern,
71 const GURL& script_url, 71 const GURL& script_url,
72 WebServiceWorkerRegistrationCallbacks* callbacks); 72 WebServiceWorkerRegistrationCallbacks* callbacks);
73 // Corresponds to ServiceWorkerRegistration.update(). 73 // Corresponds to ServiceWorkerRegistration.update().
74 void UpdateServiceWorker(int provider_id, int64 registration_id); 74 void UpdateServiceWorker(int provider_id, int64 registration_id);
75 // Corresponds to ServiceWorkerRegistration.unregister(). 75 // Corresponds to ServiceWorkerRegistration.unregister().
76 // TODO(nhiroki): Remove a deprecated version after http://crbug.com/500404 is
77 // fixed.
78 void DeprecatedUnregisterServiceWorker(
79 int provider_id,
80 const GURL& pattern,
81 WebServiceWorkerUnregistrationCallbacks* callbacks);
82 void UnregisterServiceWorker( 76 void UnregisterServiceWorker(
83 int provider_id, 77 int provider_id,
84 int64 registration_id, 78 int64 registration_id,
85 WebServiceWorkerUnregistrationCallbacks* callbacks); 79 WebServiceWorkerUnregistrationCallbacks* callbacks);
86 // Corresponds to navigator.serviceWorker.getRegistration(). 80 // Corresponds to navigator.serviceWorker.getRegistration().
87 void GetRegistration( 81 void GetRegistration(
88 int provider_id, 82 int provider_id,
89 const GURL& document_url, 83 const GURL& document_url,
90 WebServiceWorkerRegistrationCallbacks* callbacks); 84 WebServiceWorkerRegistrationCallbacks* callbacks);
91 // Corresponds to navigator.serviceWorker.getRegistrations(). 85 // Corresponds to navigator.serviceWorker.getRegistrations().
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 WorkerToProviderMap worker_to_provider_; 273 WorkerToProviderMap worker_to_provider_;
280 274
281 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 275 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
282 276
283 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); 277 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher);
284 }; 278 };
285 279
286 } // namespace content 280 } // namespace content
287 281
288 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 282 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698