| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void SetInstalling(const scoped_refptr<WebServiceWorkerImpl>& service_worker); | 42 void SetInstalling(const scoped_refptr<WebServiceWorkerImpl>& service_worker); |
| 43 void SetWaiting(const scoped_refptr<WebServiceWorkerImpl>& service_worker); | 43 void SetWaiting(const scoped_refptr<WebServiceWorkerImpl>& service_worker); |
| 44 void SetActive(const scoped_refptr<WebServiceWorkerImpl>& service_worker); | 44 void SetActive(const scoped_refptr<WebServiceWorkerImpl>& service_worker); |
| 45 | 45 |
| 46 void OnUpdateFound(); | 46 void OnUpdateFound(); |
| 47 | 47 |
| 48 // blink::WebServiceWorkerRegistration overrides. | 48 // blink::WebServiceWorkerRegistration overrides. |
| 49 void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy) override; | 49 void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy) override; |
| 50 blink::WebServiceWorkerRegistrationProxy* proxy() override; | 50 blink::WebServiceWorkerRegistrationProxy* proxy() override; |
| 51 blink::WebURL scope() const override; | 51 blink::WebURL scope() const override; |
| 52 bool useCache() const override; |
| 52 void update( | 53 void update( |
| 53 blink::WebServiceWorkerProvider* provider, | 54 blink::WebServiceWorkerProvider* provider, |
| 54 std::unique_ptr<WebServiceWorkerUpdateCallbacks> callbacks) override; | 55 std::unique_ptr<WebServiceWorkerUpdateCallbacks> callbacks) override; |
| 55 void unregister(blink::WebServiceWorkerProvider* provider, | 56 void unregister(blink::WebServiceWorkerProvider* provider, |
| 56 std::unique_ptr<WebServiceWorkerUnregistrationCallbacks> | 57 std::unique_ptr<WebServiceWorkerUnregistrationCallbacks> |
| 57 callbacks) override; | 58 callbacks) override; |
| 58 void enableNavigationPreload( | 59 void enableNavigationPreload( |
| 59 bool enable, | 60 bool enable, |
| 60 blink::WebServiceWorkerProvider* provider, | 61 blink::WebServiceWorkerProvider* provider, |
| 61 std::unique_ptr<WebEnableNavigationPreloadCallbacks> callbacks) override; | 62 std::unique_ptr<WebEnableNavigationPreloadCallbacks> callbacks) override; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 blink::WebServiceWorkerRegistrationProxy* proxy_; | 105 blink::WebServiceWorkerRegistrationProxy* proxy_; |
| 105 | 106 |
| 106 std::vector<QueuedTask> queued_tasks_; | 107 std::vector<QueuedTask> queued_tasks_; |
| 107 | 108 |
| 108 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); | 109 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace content | 112 } // namespace content |
| 112 | 113 |
| 113 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 114 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
| OLD | NEW |