Chromium Code Reviews| Index: content/child/service_worker/web_service_worker_registration_impl.cc |
| diff --git a/content/child/service_worker/web_service_worker_registration_impl.cc b/content/child/service_worker/web_service_worker_registration_impl.cc |
| index ae2705ee0b568eb48704764e0a591b0f0746cd49..55739647369bc44460ab2660f5e2c7b88a381879 100644 |
| --- a/content/child/service_worker/web_service_worker_registration_impl.cc |
| +++ b/content/child/service_worker/web_service_worker_registration_impl.cc |
| @@ -13,6 +13,7 @@ |
| #include "content/child/service_worker/web_service_worker_impl.h" |
| #include "content/child/service_worker/web_service_worker_provider_impl.h" |
| #include "content/common/service_worker/service_worker_types.h" |
| +#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerError.h" |
| #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistrationProxy.h" |
| namespace content { |
| @@ -145,6 +146,20 @@ void WebServiceWorkerRegistrationImpl::unregister( |
| registration_id(), callbacks); |
| } |
| +void WebServiceWorkerRegistrationImpl::enableNavigationPreload( |
| + WebEnableNavigationPreloadCallbacks* callbacks) { |
| + // TODO(falken): Implement this. |
|
horo
2016/10/13 07:36:06
std::unique_ptr<WebEnableNavigationPreloadCallback
falken
2016/10/13 07:45:56
Done.
|
| + callbacks->onError(blink::WebServiceWorkerError( |
| + blink::WebServiceWorkerError::ErrorTypeAbort, "Not implemented")); |
| +} |
| + |
| +void WebServiceWorkerRegistrationImpl::disableNavigationPreload( |
| + WebEnableNavigationPreloadCallbacks* callbacks) { |
|
horo
2016/10/13 07:36:06
WebDisableNavigationPreloadCallbacks
falken
2016/10/13 07:45:56
Done.
|
| + // TODO(falken): Implement this. |
|
horo
2016/10/13 07:36:06
std::unique_ptr<WebDisableNavigationPreloadCallbac
falken
2016/10/13 07:45:55
Done.
|
| + callbacks->onError(blink::WebServiceWorkerError( |
| + blink::WebServiceWorkerError::ErrorTypeAbort, "Not implemented")); |
| +} |
| + |
| int64_t WebServiceWorkerRegistrationImpl::registration_id() const { |
| return handle_ref_->registration_id(); |
| } |