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

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

Issue 998173002: Revise ServiceWorker DevTools protocols. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use DCHECK_CURRENTLY_ON Created 5 years, 9 months 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_REGISTRATION_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "content/browser/service_worker/service_worker_version.h" 15 #include "content/browser/service_worker/service_worker_version.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/common/service_worker/service_worker_types.h" 17 #include "content/common/service_worker/service_worker_types.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 class ServiceWorkerRegistrationInfo;
23 class ServiceWorkerVersion; 22 class ServiceWorkerVersion;
23 struct ServiceWorkerRegistrationInfo;
24 24
25 // This class represents a Service Worker registration. The scope is constant 25 // This class represents a Service Worker registration. The scope is constant
26 // for the life of the persistent registration. It's refcounted to facilitate 26 // for the life of the persistent registration. It's refcounted to facilitate
27 // multiple controllees being associated with the same registration. 27 // multiple controllees being associated with the same registration.
28 class CONTENT_EXPORT ServiceWorkerRegistration 28 class CONTENT_EXPORT ServiceWorkerRegistration
29 : NON_EXPORTED_BASE(public base::RefCounted<ServiceWorkerRegistration>), 29 : NON_EXPORTED_BASE(public base::RefCounted<ServiceWorkerRegistration>),
30 public ServiceWorkerVersion::Listener { 30 public ServiceWorkerVersion::Listener {
31 public: 31 public:
32 typedef base::Callback<void(ServiceWorkerStatusCode status)> StatusCallback; 32 typedef base::Callback<void(ServiceWorkerStatusCode status)> StatusCallback;
33 typedef base::Callback<void( 33 typedef base::Callback<void(
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 scoped_refptr<ServiceWorkerVersion> installing_version_; 188 scoped_refptr<ServiceWorkerVersion> installing_version_;
189 ObserverList<Listener> listeners_; 189 ObserverList<Listener> listeners_;
190 base::WeakPtr<ServiceWorkerContextCore> context_; 190 base::WeakPtr<ServiceWorkerContextCore> context_;
191 191
192 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegistration); 192 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegistration);
193 }; 193 };
194 194
195 } // namespace content 195 } // namespace content
196 196
197 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_H_ 197 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698