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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 void ScheduleDeleteAndStartOver() const; | 259 void ScheduleDeleteAndStartOver() const; |
260 | 260 |
261 // Deletes all files on disk and restarts the system. This leaves the system | 261 // Deletes all files on disk and restarts the system. This leaves the system |
262 // in a disabled state until it's done. | 262 // in a disabled state until it's done. |
263 void DeleteAndStartOver(const StatusCallback& callback); | 263 void DeleteAndStartOver(const StatusCallback& callback); |
264 | 264 |
265 // Methods to support cross site navigations. | 265 // Methods to support cross site navigations. |
266 std::unique_ptr<ServiceWorkerProviderHost> TransferProviderHostOut( | 266 std::unique_ptr<ServiceWorkerProviderHost> TransferProviderHostOut( |
267 int process_id, | 267 int process_id, |
268 int provider_id); | 268 int provider_id); |
269 void TransferProviderHostIn( | 269 bool TransferProviderHostIn( |
270 int new_process_id, | 270 int new_process_id, |
271 int new_host_id, | 271 int new_host_id, |
272 std::unique_ptr<ServiceWorkerProviderHost> provider_host); | 272 std::unique_ptr<ServiceWorkerProviderHost> provider_host); |
273 | 273 |
274 void ClearAllServiceWorkersForTest(const base::Closure& callback); | 274 void ClearAllServiceWorkersForTest(const base::Closure& callback); |
275 | 275 |
276 // Determines if there is a ServiceWorker registration that matches |url|, and | 276 // Determines if there is a ServiceWorker registration that matches |url|, and |
277 // if |other_url| falls inside the scope of the same registration. See | 277 // if |other_url| falls inside the scope of the same registration. See |
278 // ServiceWorkerContext::CheckHasServiceWorker for more details. | 278 // ServiceWorkerContext::CheckHasServiceWorker for more details. |
279 void CheckHasServiceWorker( | 279 void CheckHasServiceWorker( |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 scoped_refptr<base::ObserverListThreadSafe<ServiceWorkerContextObserver>> | 368 scoped_refptr<base::ObserverListThreadSafe<ServiceWorkerContextObserver>> |
369 observer_list_; | 369 observer_list_; |
370 base::WeakPtrFactory<ServiceWorkerContextCore> weak_factory_; | 370 base::WeakPtrFactory<ServiceWorkerContextCore> weak_factory_; |
371 | 371 |
372 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore); | 372 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore); |
373 }; | 373 }; |
374 | 374 |
375 } // namespace content | 375 } // namespace content |
376 | 376 |
377 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ | 377 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
OLD | NEW |