| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 std::unique_ptr<WebEnableNavigationPreloadCallbacks> callbacks) override; | 59 std::unique_ptr<WebEnableNavigationPreloadCallbacks> callbacks) override; |
| 60 void getNavigationPreloadState( | 60 void getNavigationPreloadState( |
| 61 blink::WebServiceWorkerProvider* provider, | 61 blink::WebServiceWorkerProvider* provider, |
| 62 std::unique_ptr<WebGetNavigationPreloadStateCallbacks> callbacks) | 62 std::unique_ptr<WebGetNavigationPreloadStateCallbacks> callbacks) |
| 63 override; | 63 override; |
| 64 void setNavigationPreloadHeader( | 64 void setNavigationPreloadHeader( |
| 65 const blink::WebString& value, | 65 const blink::WebString& value, |
| 66 blink::WebServiceWorkerProvider* provider, | 66 blink::WebServiceWorkerProvider* provider, |
| 67 std::unique_ptr<WebSetNavigationPreloadHeaderCallbacks> callbacks) | 67 std::unique_ptr<WebSetNavigationPreloadHeaderCallbacks> callbacks) |
| 68 override; | 68 override; |
| 69 int64_t registrationId() const override; |
| 69 | 70 |
| 71 // TODO(adithyas): Remove this function and use registrationId() instead |
| 70 int64_t registration_id() const; | 72 int64_t registration_id() const; |
| 71 | 73 |
| 72 using WebServiceWorkerRegistrationHandle = | 74 using WebServiceWorkerRegistrationHandle = |
| 73 blink::WebServiceWorkerRegistration::Handle; | 75 blink::WebServiceWorkerRegistration::Handle; |
| 74 | 76 |
| 75 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to | 77 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to |
| 76 // the given WebServiceWorkerRegistrationImpl object. | 78 // the given WebServiceWorkerRegistrationImpl object. |
| 77 static std::unique_ptr<WebServiceWorkerRegistrationHandle> CreateHandle( | 79 static std::unique_ptr<WebServiceWorkerRegistrationHandle> CreateHandle( |
| 78 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration); | 80 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration); |
| 79 | 81 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 110 blink::WebServiceWorkerRegistrationProxy* proxy_; | 112 blink::WebServiceWorkerRegistrationProxy* proxy_; |
| 111 | 113 |
| 112 std::vector<QueuedTask> queued_tasks_; | 114 std::vector<QueuedTask> queued_tasks_; |
| 113 | 115 |
| 114 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); | 116 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); |
| 115 }; | 117 }; |
| 116 | 118 |
| 117 } // namespace content | 119 } // namespace content |
| 118 | 120 |
| 119 #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 |