| OLD | NEW |
| 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_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
| 6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistration.h" | 9 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistration.h" |
| 10 | 10 |
| 11 namespace blink { |
| 12 class WebServiceWorker; |
| 13 class WebServiceWorkerRegistrationProxy; |
| 14 } |
| 15 |
| 11 namespace content { | 16 namespace content { |
| 12 | 17 |
| 18 class ServiceWorkerRegistrationHandleReference; |
| 19 class ThreadSafeSender; |
| 13 struct ServiceWorkerObjectInfo; | 20 struct ServiceWorkerObjectInfo; |
| 14 | 21 |
| 15 class WebServiceWorkerRegistrationImpl | 22 class WebServiceWorkerRegistrationImpl |
| 16 : NON_EXPORTED_BASE(public blink::WebServiceWorkerRegistration) { | 23 : NON_EXPORTED_BASE(public blink::WebServiceWorkerRegistration) { |
| 17 public: | 24 public: |
| 18 explicit WebServiceWorkerRegistrationImpl( | 25 explicit WebServiceWorkerRegistrationImpl( |
| 19 const ServiceWorkerObjectInfo& info); | 26 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref); |
| 20 virtual ~WebServiceWorkerRegistrationImpl(); | 27 virtual ~WebServiceWorkerRegistrationImpl(); |
| 21 | 28 |
| 29 void OnUpdateFound(); |
| 30 |
| 31 virtual void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy); |
| 32 virtual void setInstalling(blink::WebServiceWorker* service_worker); |
| 33 virtual void setWaiting(blink::WebServiceWorker* service_worker); |
| 34 virtual void setActive(blink::WebServiceWorker* service_worker); |
| 35 |
| 22 virtual blink::WebURL scope() const; | 36 virtual blink::WebURL scope() const; |
| 23 | 37 |
| 24 private: | 38 private: |
| 25 const GURL scope_; | 39 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref_; |
| 40 blink::WebServiceWorkerRegistrationProxy* proxy_; |
| 26 | 41 |
| 27 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); | 42 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); |
| 28 }; | 43 }; |
| 29 | 44 |
| 30 } // namespace content | 45 } // namespace content |
| 31 | 46 |
| 32 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 47 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
| OLD | NEW |