| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void OnUpdateFound(); | 48 void OnUpdateFound(); |
| 49 | 49 |
| 50 // blink::WebServiceWorkerRegistration overrides. | 50 // blink::WebServiceWorkerRegistration overrides. |
| 51 void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy) override; | 51 void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy) override; |
| 52 blink::WebServiceWorkerRegistrationProxy* proxy() override; | 52 blink::WebServiceWorkerRegistrationProxy* proxy() override; |
| 53 blink::WebURL scope() const override; | 53 blink::WebURL scope() const override; |
| 54 void update(blink::WebServiceWorkerProvider* provider, | 54 void update(blink::WebServiceWorkerProvider* provider, |
| 55 WebServiceWorkerUpdateCallbacks* callbacks) override; | 55 WebServiceWorkerUpdateCallbacks* callbacks) override; |
| 56 void unregister(blink::WebServiceWorkerProvider* provider, | 56 void unregister(blink::WebServiceWorkerProvider* provider, |
| 57 WebServiceWorkerUnregistrationCallbacks* callbacks) override; | 57 WebServiceWorkerUnregistrationCallbacks* callbacks) override; |
| 58 void enableNavigationPreload( |
| 59 WebEnableNavigationPreloadCallbacks* callbacks) override; |
| 60 void disableNavigationPreload( |
| 61 WebDisableNavigationPreloadCallbacks* callbacks) override; |
| 58 | 62 |
| 59 int64_t registration_id() const; | 63 int64_t registration_id() const; |
| 60 | 64 |
| 61 using WebServiceWorkerRegistrationHandle = | 65 using WebServiceWorkerRegistrationHandle = |
| 62 blink::WebServiceWorkerRegistration::Handle; | 66 blink::WebServiceWorkerRegistration::Handle; |
| 63 | 67 |
| 64 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to | 68 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to |
| 65 // the given WebServiceWorkerRegistrationImpl object. | 69 // the given WebServiceWorkerRegistrationImpl object. |
| 66 static std::unique_ptr<WebServiceWorkerRegistrationHandle> CreateHandle( | 70 static std::unique_ptr<WebServiceWorkerRegistrationHandle> CreateHandle( |
| 67 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration); | 71 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 blink::WebServiceWorkerRegistrationProxy* proxy_; | 103 blink::WebServiceWorkerRegistrationProxy* proxy_; |
| 100 | 104 |
| 101 std::vector<QueuedTask> queued_tasks_; | 105 std::vector<QueuedTask> queued_tasks_; |
| 102 | 106 |
| 103 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); | 107 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); |
| 104 }; | 108 }; |
| 105 | 109 |
| 106 } // namespace content | 110 } // namespace content |
| 107 | 111 |
| 108 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 112 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
| OLD | NEW |