OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UNREGISTER_JOB_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UNREGISTER_JOB_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UNREGISTER_JOB_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UNREGISTER_JOB_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
| 12 #include "base/callback_forward.h" |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
14 #include "content/browser/service_worker/service_worker_register_job_base.h" | 15 #include "content/browser/service_worker/service_worker_register_job_base.h" |
15 #include "content/common/service_worker/service_worker_status_code.h" | 16 #include "content/common/service_worker/service_worker_status_code.h" |
16 #include "url/gurl.h" | 17 #include "url/gurl.h" |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
20 class ServiceWorkerContextCore; | 21 class ServiceWorkerContextCore; |
21 class ServiceWorkerRegistration; | 22 class ServiceWorkerRegistration; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const GURL pattern_; | 59 const GURL pattern_; |
59 std::vector<UnregistrationCallback> callbacks_; | 60 std::vector<UnregistrationCallback> callbacks_; |
60 bool is_promise_resolved_; | 61 bool is_promise_resolved_; |
61 base::WeakPtrFactory<ServiceWorkerUnregisterJob> weak_factory_; | 62 base::WeakPtrFactory<ServiceWorkerUnregisterJob> weak_factory_; |
62 | 63 |
63 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerUnregisterJob); | 64 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerUnregisterJob); |
64 }; | 65 }; |
65 } // namespace content | 66 } // namespace content |
66 | 67 |
67 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UNREGISTER_JOB_H_ | 68 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_UNREGISTER_JOB_H_ |
OLD | NEW |