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

Unified Diff: content/child/service_worker/web_service_worker_registration_impl.h

Issue 463013002: ServiceWorker: Implement updatefound event and version attributes (Chromium) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address for comments Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/child/service_worker/web_service_worker_registration_impl.h
diff --git a/content/child/service_worker/web_service_worker_registration_impl.h b/content/child/service_worker/web_service_worker_registration_impl.h
index 1fd65ddbf63ffc812aa12d3566fffaefe2c74234..c2d574a9cc17c5c44a7de043f15554eeee594fd9 100644
--- a/content/child/service_worker/web_service_worker_registration_impl.h
+++ b/content/child/service_worker/web_service_worker_registration_impl.h
@@ -8,21 +8,36 @@
#include "base/compiler_specific.h"
#include "third_party/WebKit/public/platform/WebServiceWorkerRegistration.h"
+namespace blink {
+class WebServiceWorker;
+class WebServiceWorkerRegistrationProxy;
+}
+
namespace content {
+class ServiceWorkerRegistrationHandleReference;
+class ThreadSafeSender;
struct ServiceWorkerObjectInfo;
class WebServiceWorkerRegistrationImpl
: NON_EXPORTED_BASE(public blink::WebServiceWorkerRegistration) {
public:
explicit WebServiceWorkerRegistrationImpl(
- const ServiceWorkerObjectInfo& info);
+ scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref);
virtual ~WebServiceWorkerRegistrationImpl();
+ void OnUpdateFound();
+
+ virtual void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy);
+ virtual void setInstalling(blink::WebServiceWorker* service_worker);
+ virtual void setWaiting(blink::WebServiceWorker* service_worker);
+ virtual void setActive(blink::WebServiceWorker* service_worker);
+
virtual blink::WebURL scope() const;
private:
- const GURL scope_;
+ scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref_;
+ blink::WebServiceWorkerRegistrationProxy* proxy_;
DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl);
};

Powered by Google App Engine
This is Rietveld 408576698