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

Side by Side Diff: content/browser/service_worker/service_worker_register_job.h

Issue 2473003002: content: Cleanup class/struct forward declarations (Closed)
Patch Set: Another missing forward declaration Created 4 years, 1 month 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "content/browser/service_worker/embedded_worker_instance.h" 14 #include "content/browser/service_worker/embedded_worker_instance.h"
15 #include "content/browser/service_worker/service_worker_register_job_base.h" 15 #include "content/browser/service_worker/service_worker_register_job_base.h"
16 #include "content/browser/service_worker/service_worker_registration.h" 16 #include "content/browser/service_worker/service_worker_registration.h"
17 #include "content/common/service_worker/service_worker_status_code.h" 17 #include "content/common/service_worker/service_worker_status_code.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 class ServiceWorkerJobCoordinator;
23 class ServiceWorkerStorage;
24
25 // Handles the initial registration of a Service Worker and the 22 // Handles the initial registration of a Service Worker and the
26 // subsequent update of existing registrations. 23 // subsequent update of existing registrations.
27 // 24 //
28 // The control flow includes most or all of the following, 25 // The control flow includes most or all of the following,
29 // depending on what is already registered: 26 // depending on what is already registered:
30 // - creating a ServiceWorkerRegistration instance if there isn't 27 // - creating a ServiceWorkerRegistration instance if there isn't
31 // already something registered 28 // already something registered
32 // - creating a ServiceWorkerVersion for the new version. 29 // - creating a ServiceWorkerVersion for the new version.
33 // - starting a worker for the ServiceWorkerVersion 30 // - starting a worker for the ServiceWorkerVersion
34 // - firing the 'install' event at the ServiceWorkerVersion 31 // - firing the 'install' event at the ServiceWorkerVersion
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 std::string promise_resolved_status_message_; 160 std::string promise_resolved_status_message_;
164 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; 161 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_;
165 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; 162 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_;
166 163
167 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); 164 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob);
168 }; 165 };
169 166
170 } // namespace content 167 } // namespace content
171 168
172 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ 169 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698