| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "modules/background_fetch/BackgroundFetchManager.h" | 5 #include "modules/background_fetch/BackgroundFetchManager.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ScriptPromiseResolver.h" | 7 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 8 #include "bindings/core/v8/V8ThrowException.h" | |
| 9 #include "bindings/modules/v8/RequestOrUSVString.h" | 8 #include "bindings/modules/v8/RequestOrUSVString.h" |
| 10 #include "bindings/modules/v8/RequestOrUSVStringOrRequestOrUSVStringSequence.h" | 9 #include "bindings/modules/v8/RequestOrUSVStringOrRequestOrUSVStringSequence.h" |
| 11 #include "core/dom/DOMException.h" | 10 #include "core/dom/DOMException.h" |
| 12 #include "core/dom/ExceptionCode.h" | 11 #include "core/dom/ExceptionCode.h" |
| 13 #include "modules/background_fetch/BackgroundFetchBridge.h" | 12 #include "modules/background_fetch/BackgroundFetchBridge.h" |
| 14 #include "modules/background_fetch/BackgroundFetchOptions.h" | 13 #include "modules/background_fetch/BackgroundFetchOptions.h" |
| 15 #include "modules/background_fetch/BackgroundFetchRegistration.h" | 14 #include "modules/background_fetch/BackgroundFetchRegistration.h" |
| 16 #include "modules/fetch/Request.h" | 15 #include "modules/fetch/Request.h" |
| 17 #include "modules/serviceworkers/ServiceWorkerRegistration.h" | 16 #include "modules/serviceworkers/ServiceWorkerRegistration.h" |
| 18 #include "platform/bindings/ScriptState.h" | 17 #include "platform/bindings/ScriptState.h" |
| 18 #include "platform/bindings/V8ThrowException.h" |
| 19 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" | 19 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 // Message for the TypeError thrown when an empty request sequence is seen. | 25 // Message for the TypeError thrown when an empty request sequence is seen. |
| 26 const char kEmptyRequestSequenceErrorMessage[] = | 26 const char kEmptyRequestSequenceErrorMessage[] = |
| 27 "At least one request must be given."; | 27 "At least one request must be given."; |
| 28 | 28 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 223 |
| 224 NOTREACHED(); | 224 NOTREACHED(); |
| 225 } | 225 } |
| 226 | 226 |
| 227 DEFINE_TRACE(BackgroundFetchManager) { | 227 DEFINE_TRACE(BackgroundFetchManager) { |
| 228 visitor->Trace(registration_); | 228 visitor->Trace(registration_); |
| 229 visitor->Trace(bridge_); | 229 visitor->Trace(bridge_); |
| 230 } | 230 } |
| 231 | 231 |
| 232 } // namespace blink | 232 } // namespace blink |
| OLD | NEW |