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 |
(...skipping 11 matching lines...) Expand all Loading... |
22 class WebServiceWorkerRegistrationImpl | 22 class WebServiceWorkerRegistrationImpl |
23 : NON_EXPORTED_BASE(public blink::WebServiceWorkerRegistration) { | 23 : NON_EXPORTED_BASE(public blink::WebServiceWorkerRegistration) { |
24 public: | 24 public: |
25 explicit WebServiceWorkerRegistrationImpl( | 25 explicit WebServiceWorkerRegistrationImpl( |
26 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref); | 26 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref); |
27 virtual ~WebServiceWorkerRegistrationImpl(); | 27 virtual ~WebServiceWorkerRegistrationImpl(); |
28 | 28 |
29 void OnUpdateFound(); | 29 void OnUpdateFound(); |
30 | 30 |
31 virtual void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy); | 31 virtual void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy); |
| 32 virtual blink::WebServiceWorkerRegistrationProxy* proxy(); |
32 virtual void setInstalling(blink::WebServiceWorker* service_worker); | 33 virtual void setInstalling(blink::WebServiceWorker* service_worker); |
33 virtual void setWaiting(blink::WebServiceWorker* service_worker); | 34 virtual void setWaiting(blink::WebServiceWorker* service_worker); |
34 virtual void setActive(blink::WebServiceWorker* service_worker); | 35 virtual void setActive(blink::WebServiceWorker* service_worker); |
35 | 36 |
36 virtual blink::WebURL scope() const; | 37 virtual blink::WebURL scope() const; |
37 | 38 |
38 private: | 39 private: |
39 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref_; | 40 scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref_; |
40 blink::WebServiceWorkerRegistrationProxy* proxy_; | 41 blink::WebServiceWorkerRegistrationProxy* proxy_; |
41 | 42 |
42 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); | 43 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); |
43 }; | 44 }; |
44 | 45 |
45 } // namespace content | 46 } // namespace content |
46 | 47 |
47 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 48 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
OLD | NEW |