OLD | NEW |
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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 return providers_->Lookup(process_id); | 208 return providers_->Lookup(process_id); |
209 } | 209 } |
210 | 210 |
211 void RegistrationComplete(const GURL& pattern, | 211 void RegistrationComplete(const GURL& pattern, |
212 const RegistrationCallback& callback, | 212 const RegistrationCallback& callback, |
213 ServiceWorkerStatusCode status, | 213 ServiceWorkerStatusCode status, |
214 ServiceWorkerRegistration* registration); | 214 ServiceWorkerRegistration* registration); |
215 | 215 |
216 void UnregistrationComplete(const GURL& pattern, | 216 void UnregistrationComplete(const GURL& pattern, |
217 const UnregistrationCallback& callback, | 217 const UnregistrationCallback& callback, |
| 218 int64 registration_id, |
218 ServiceWorkerStatusCode status); | 219 ServiceWorkerStatusCode status); |
219 | 220 |
220 void DidGetAllRegistrationsForUnregisterForOrigin( | 221 void DidGetAllRegistrationsForUnregisterForOrigin( |
221 const UnregistrationCallback& result, | 222 const UnregistrationCallback& result, |
222 const GURL& origin, | 223 const GURL& origin, |
223 const std::vector<ServiceWorkerRegistrationInfo>& registrations); | 224 const std::vector<ServiceWorkerRegistrationInfo>& registrations); |
224 | 225 |
225 // It's safe to store a raw pointer instead of a scoped_refptr to |wrapper_| | 226 // It's safe to store a raw pointer instead of a scoped_refptr to |wrapper_| |
226 // because the Wrapper::Shutdown call that hops threads to destroy |this| uses | 227 // because the Wrapper::Shutdown call that hops threads to destroy |this| uses |
227 // Bind() to hold a reference to |wrapper_| until |this| is fully destroyed. | 228 // Bind() to hold a reference to |wrapper_| until |this| is fully destroyed. |
(...skipping 10 matching lines...) Expand all Loading... |
238 scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> > | 239 scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> > |
239 observer_list_; | 240 observer_list_; |
240 base::WeakPtrFactory<ServiceWorkerContextCore> weak_factory_; | 241 base::WeakPtrFactory<ServiceWorkerContextCore> weak_factory_; |
241 | 242 |
242 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore); | 243 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore); |
243 }; | 244 }; |
244 | 245 |
245 } // namespace content | 246 } // namespace content |
246 | 247 |
247 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ | 248 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
OLD | NEW |