| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 explicit WebServiceWorkerRegistrationImpl( | 41 explicit WebServiceWorkerRegistrationImpl( |
| 42 std::unique_ptr<ServiceWorkerRegistrationHandleReference> handle_ref); | 42 std::unique_ptr<ServiceWorkerRegistrationHandleReference> handle_ref); |
| 43 | 43 |
| 44 void SetInstalling(const scoped_refptr<WebServiceWorkerImpl>& service_worker); | 44 void SetInstalling(const scoped_refptr<WebServiceWorkerImpl>& service_worker); |
| 45 void SetWaiting(const scoped_refptr<WebServiceWorkerImpl>& service_worker); | 45 void SetWaiting(const scoped_refptr<WebServiceWorkerImpl>& service_worker); |
| 46 void SetActive(const scoped_refptr<WebServiceWorkerImpl>& service_worker); | 46 void SetActive(const scoped_refptr<WebServiceWorkerImpl>& service_worker); |
| 47 | 47 |
| 48 void OnUpdateFound(); | 48 void OnUpdateFound(); |
| 49 | 49 |
| 50 // blink::WebServiceWorkerRegistration overrides. | 50 // blink::WebServiceWorkerRegistration overrides. |
| 51 int64_t registrationId() override; |
| 51 void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy) override; | 52 void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy) override; |
| 52 blink::WebServiceWorkerRegistrationProxy* proxy() override; | 53 blink::WebServiceWorkerRegistrationProxy* proxy() override; |
| 53 blink::WebURL scope() const override; | 54 blink::WebURL scope() const override; |
| 54 void update(blink::WebServiceWorkerProvider* provider, | 55 void update(blink::WebServiceWorkerProvider* provider, |
| 55 WebServiceWorkerUpdateCallbacks* callbacks) override; | 56 WebServiceWorkerUpdateCallbacks* callbacks) override; |
| 56 void unregister(blink::WebServiceWorkerProvider* provider, | 57 void unregister(blink::WebServiceWorkerProvider* provider, |
| 57 WebServiceWorkerUnregistrationCallbacks* callbacks) override; | 58 WebServiceWorkerUnregistrationCallbacks* callbacks) override; |
| 58 | 59 |
| 59 int64_t registration_id() const; | 60 int64_t registration_id() const; |
| 60 | 61 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 blink::WebServiceWorkerRegistrationProxy* proxy_; | 100 blink::WebServiceWorkerRegistrationProxy* proxy_; |
| 100 | 101 |
| 101 std::vector<QueuedTask> queued_tasks_; | 102 std::vector<QueuedTask> queued_tasks_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); | 104 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace content | 107 } // namespace content |
| 107 | 108 |
| 108 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 109 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
| OLD | NEW |