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

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

Issue 554573002: SWRegistration::unregister returns false when the registration is already unregistered. (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add const Created 6 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
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 friend class WebServiceWorkerRegistrationImpl; 130 friend class WebServiceWorkerRegistrationImpl;
131 131
132 // WorkerTaskRunner::Observer implementation. 132 // WorkerTaskRunner::Observer implementation.
133 virtual void OnWorkerRunLoopStopped() OVERRIDE; 133 virtual void OnWorkerRunLoopStopped() OVERRIDE;
134 134
135 void OnRegistered(int thread_id, 135 void OnRegistered(int thread_id,
136 int request_id, 136 int request_id,
137 const ServiceWorkerRegistrationObjectInfo& info, 137 const ServiceWorkerRegistrationObjectInfo& info,
138 const ServiceWorkerVersionAttributes& attrs); 138 const ServiceWorkerVersionAttributes& attrs);
139 void OnUnregistered(int thread_id, 139 void OnUnregistered(int thread_id,
140 int request_id); 140 int request_id,
141 bool is_success);
141 void OnRegistrationError(int thread_id, 142 void OnRegistrationError(int thread_id,
142 int request_id, 143 int request_id,
143 blink::WebServiceWorkerError::ErrorType error_type, 144 blink::WebServiceWorkerError::ErrorType error_type,
144 const base::string16& message); 145 const base::string16& message);
145 void OnUnregistrationError(int thread_id, 146 void OnUnregistrationError(int thread_id,
146 int request_id, 147 int request_id,
147 blink::WebServiceWorkerError::ErrorType error_type, 148 blink::WebServiceWorkerError::ErrorType error_type,
148 const base::string16& message); 149 const base::string16& message);
149 void OnServiceWorkerStateChanged(int thread_id, 150 void OnServiceWorkerStateChanged(int thread_id,
150 int handle_id, 151 int handle_id,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 WorkerToProviderMap worker_to_provider_; 202 WorkerToProviderMap worker_to_provider_;
202 203
203 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 204 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
204 205
205 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); 206 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher);
206 }; 207 };
207 208
208 } // namespace content 209 } // namespace content
209 210
210 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 211 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698