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

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

Issue 894973003: ServiceWorker: Make "ready" fetches registration from browser process(2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: work around push browser tests; make ready IPC sent later 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"
(...skipping 24 matching lines...) Expand all
35 ServiceWorkerStatusCode status)> GetUserDataCallback; 35 ServiceWorkerStatusCode status)> GetUserDataCallback;
36 36
37 class Listener { 37 class Listener {
38 public: 38 public:
39 virtual void OnVersionAttributesChanged( 39 virtual void OnVersionAttributesChanged(
40 ServiceWorkerRegistration* registration, 40 ServiceWorkerRegistration* registration,
41 ChangedVersionAttributesMask changed_mask, 41 ChangedVersionAttributesMask changed_mask,
42 const ServiceWorkerRegistrationInfo& info) {} 42 const ServiceWorkerRegistrationInfo& info) {}
43 virtual void OnRegistrationFailed( 43 virtual void OnRegistrationFailed(
44 ServiceWorkerRegistration* registration) {} 44 ServiceWorkerRegistration* registration) {}
45 virtual void OnRegistrationFinishedUninstalling(
46 ServiceWorkerRegistration* registration) {}
45 virtual void OnUpdateFound( 47 virtual void OnUpdateFound(
46 ServiceWorkerRegistration* registration) {} 48 ServiceWorkerRegistration* registration) {}
47 virtual void OnSkippedWaiting(ServiceWorkerRegistration* registation) {} 49 virtual void OnSkippedWaiting(ServiceWorkerRegistration* registation) {}
50 virtual void OnActivateVersion(ServiceWorkerRegistration* registration) {}
falken 2015/03/05 09:21:52 It's kind of bizarre to have both OnVersionAttribu
48 }; 51 };
49 52
50 ServiceWorkerRegistration(const GURL& pattern, 53 ServiceWorkerRegistration(const GURL& pattern,
51 int64 registration_id, 54 int64 registration_id,
52 base::WeakPtr<ServiceWorkerContextCore> context); 55 base::WeakPtr<ServiceWorkerContextCore> context);
53 56
54 int64 id() const { return registration_id_; } 57 int64 id() const { return registration_id_; }
55 const GURL& pattern() const { return pattern_; } 58 const GURL& pattern() const { return pattern_; }
56 59
57 bool is_deleted() const { return is_deleted_; } 60 bool is_deleted() const { return is_deleted_; }
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 scoped_refptr<ServiceWorkerVersion> installing_version_; 189 scoped_refptr<ServiceWorkerVersion> installing_version_;
187 ObserverList<Listener> listeners_; 190 ObserverList<Listener> listeners_;
188 base::WeakPtr<ServiceWorkerContextCore> context_; 191 base::WeakPtr<ServiceWorkerContextCore> context_;
189 192
190 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegistration); 193 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegistration);
191 }; 194 };
192 195
193 } // namespace content 196 } // namespace content
194 197
195 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_H_ 198 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698