| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void unregister(blink::WebServiceWorkerProvider* provider, | 56 void unregister(blink::WebServiceWorkerProvider* provider, |
| 57 WebServiceWorkerUnregistrationCallbacks* callbacks) override; | 57 WebServiceWorkerUnregistrationCallbacks* callbacks) override; |
| 58 void enableNavigationPreload( | 58 void enableNavigationPreload( |
| 59 bool enable, | 59 bool enable, |
| 60 blink::WebServiceWorkerProvider* provider, | 60 blink::WebServiceWorkerProvider* provider, |
| 61 std::unique_ptr<WebEnableNavigationPreloadCallbacks> callbacks) override; | 61 std::unique_ptr<WebEnableNavigationPreloadCallbacks> callbacks) override; |
| 62 void getNavigationPreloadState( | 62 void getNavigationPreloadState( |
| 63 blink::WebServiceWorkerProvider* provider, | 63 blink::WebServiceWorkerProvider* provider, |
| 64 std::unique_ptr<WebGetNavigationPreloadStateCallbacks> callbacks) | 64 std::unique_ptr<WebGetNavigationPreloadStateCallbacks> callbacks) |
| 65 override; | 65 override; |
| 66 void setNavigationPreloadHeader( |
| 67 const blink::WebString& value, |
| 68 blink::WebServiceWorkerProvider* provider, |
| 69 std::unique_ptr<WebSetNavigationPreloadHeaderCallbacks> callbacks) |
| 70 override; |
| 66 | 71 |
| 67 int64_t registration_id() const; | 72 int64_t registration_id() const; |
| 68 | 73 |
| 69 using WebServiceWorkerRegistrationHandle = | 74 using WebServiceWorkerRegistrationHandle = |
| 70 blink::WebServiceWorkerRegistration::Handle; | 75 blink::WebServiceWorkerRegistration::Handle; |
| 71 | 76 |
| 72 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to | 77 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to |
| 73 // the given WebServiceWorkerRegistrationImpl object. | 78 // the given WebServiceWorkerRegistrationImpl object. |
| 74 static std::unique_ptr<WebServiceWorkerRegistrationHandle> CreateHandle( | 79 static std::unique_ptr<WebServiceWorkerRegistrationHandle> CreateHandle( |
| 75 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration); | 80 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 blink::WebServiceWorkerRegistrationProxy* proxy_; | 112 blink::WebServiceWorkerRegistrationProxy* proxy_; |
| 108 | 113 |
| 109 std::vector<QueuedTask> queued_tasks_; | 114 std::vector<QueuedTask> queued_tasks_; |
| 110 | 115 |
| 111 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); | 116 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); |
| 112 }; | 117 }; |
| 113 | 118 |
| 114 } // namespace content | 119 } // namespace content |
| 115 | 120 |
| 116 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 121 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
| OLD | NEW |