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