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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 58 void enableNavigationPreload( |
59 WebEnableNavigationPreloadCallbacks* callbacks) override; | 59 bool enable, |
60 void disableNavigationPreload( | 60 blink::WebServiceWorkerProvider* provider, |
61 WebDisableNavigationPreloadCallbacks* callbacks) override; | 61 std::unique_ptr<WebEnableNavigationPreloadCallbacks> callbacks) override; |
62 | 62 |
63 int64_t registration_id() const; | 63 int64_t registration_id() const; |
64 | 64 |
65 using WebServiceWorkerRegistrationHandle = | 65 using WebServiceWorkerRegistrationHandle = |
66 blink::WebServiceWorkerRegistration::Handle; | 66 blink::WebServiceWorkerRegistration::Handle; |
67 | 67 |
68 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to | 68 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to |
69 // the given WebServiceWorkerRegistrationImpl object. | 69 // the given WebServiceWorkerRegistrationImpl object. |
70 static std::unique_ptr<WebServiceWorkerRegistrationHandle> CreateHandle( | 70 static std::unique_ptr<WebServiceWorkerRegistrationHandle> CreateHandle( |
71 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration); | 71 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 blink::WebServiceWorkerRegistrationProxy* proxy_; | 103 blink::WebServiceWorkerRegistrationProxy* proxy_; |
104 | 104 |
105 std::vector<QueuedTask> queued_tasks_; | 105 std::vector<QueuedTask> queued_tasks_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); | 107 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); |
108 }; | 108 }; |
109 | 109 |
110 } // namespace content | 110 } // namespace content |
111 | 111 |
112 #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 |