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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 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( |
| 63 blink::WebServiceWorkerProvider* provider, |
| 64 std::unique_ptr<WebGetNavigationPreloadStateCallbacks> callbacks) |
| 65 override; |
62 | 66 |
63 int64_t registration_id() const; | 67 int64_t registration_id() const; |
64 | 68 |
65 using WebServiceWorkerRegistrationHandle = | 69 using WebServiceWorkerRegistrationHandle = |
66 blink::WebServiceWorkerRegistration::Handle; | 70 blink::WebServiceWorkerRegistration::Handle; |
67 | 71 |
68 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to | 72 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to |
69 // the given WebServiceWorkerRegistrationImpl object. | 73 // the given WebServiceWorkerRegistrationImpl object. |
70 static std::unique_ptr<WebServiceWorkerRegistrationHandle> CreateHandle( | 74 static std::unique_ptr<WebServiceWorkerRegistrationHandle> CreateHandle( |
71 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration); | 75 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 blink::WebServiceWorkerRegistrationProxy* proxy_; | 107 blink::WebServiceWorkerRegistrationProxy* proxy_; |
104 | 108 |
105 std::vector<QueuedTask> queued_tasks_; | 109 std::vector<QueuedTask> queued_tasks_; |
106 | 110 |
107 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); | 111 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); |
108 }; | 112 }; |
109 | 113 |
110 } // namespace content | 114 } // namespace content |
111 | 115 |
112 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ | 116 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ |
OLD | NEW |