| 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..f9e18f99aa9d2b0d43a143158766c38b72aebfe0 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,24 @@ void WebServiceWorkerRegistrationImpl::unregister(
|
| registration_id(), callbacks);
|
| }
|
|
|
| +void WebServiceWorkerRegistrationImpl::enableNavigationPreload(
|
| + WebEnableNavigationPreloadCallbacks* callbacks) {
|
| + std::unique_ptr<WebEnableNavigationPreloadCallbacks> owned_callbacks(
|
| + callbacks);
|
| + // TODO(falken): Implement this.
|
| + owned_callbacks->onError(blink::WebServiceWorkerError(
|
| + blink::WebServiceWorkerError::ErrorTypeAbort, "Not implemented"));
|
| +}
|
| +
|
| +void WebServiceWorkerRegistrationImpl::disableNavigationPreload(
|
| + WebDisableNavigationPreloadCallbacks* callbacks) {
|
| + std::unique_ptr<WebDisableNavigationPreloadCallbacks> owned_callbacks(
|
| + callbacks);
|
| + // TODO(falken): Implement this.
|
| + owned_callbacks->onError(blink::WebServiceWorkerError(
|
| + blink::WebServiceWorkerError::ErrorTypeAbort, "Not implemented"));
|
| +}
|
| +
|
| int64_t WebServiceWorkerRegistrationImpl::registration_id() const {
|
| return handle_ref_->registration_id();
|
| }
|
|
|