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

Side by Side Diff: content/browser/service_worker/service_worker_registration_handle.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 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_REGISTRATION_HANDLE_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_HANDLE_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_HANDLE_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_HANDLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "content/browser/service_worker/service_worker_registration.h" 13 #include "content/browser/service_worker/service_worker_registration.h"
14 #include "content/browser/service_worker/service_worker_version.h" 14 #include "content/browser/service_worker/service_worker_version.h"
15 #include "content/common/service_worker/service_worker_types.h" 15 #include "content/common/service_worker/service_worker_types.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 class ServiceWorkerContextCore; 19 class ServiceWorkerContextCore;
20 class ServiceWorkerDispatcherHost;
21 class ServiceWorkerVersion; 20 class ServiceWorkerVersion;
22 21
23 // Roughly corresponds to one WebServiceWorkerRegistration object in the 22 // Roughly corresponds to one WebServiceWorkerRegistration object in the
24 // renderer process. 23 // renderer process.
25 // 24 //
26 // The renderer process maintains the reference count by owning a 25 // The renderer process maintains the reference count by owning a
27 // ServiceWorkerRegistrationHandleReference for each reference it has to the 26 // ServiceWorkerRegistrationHandleReference for each reference it has to the
28 // registration object. ServiceWorkerRegistrationHandleReference creation and 27 // registration object. ServiceWorkerRegistrationHandleReference creation and
29 // destruction sends an IPC to the browser process, which adjusts the 28 // destruction sends an IPC to the browser process, which adjusts the
30 // ServiceWorkerRegistrationHandle refcount. 29 // ServiceWorkerRegistrationHandle refcount.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 75
77 // This handle is the primary owner of this registration. 76 // This handle is the primary owner of this registration.
78 scoped_refptr<ServiceWorkerRegistration> registration_; 77 scoped_refptr<ServiceWorkerRegistration> registration_;
79 78
80 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegistrationHandle); 79 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegistrationHandle);
81 }; 80 };
82 81
83 } // namespace content 82 } // namespace content
84 83
85 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_HANDLE_H_ 84 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698