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 #include "modules/cachestorage/Cache.h" | 5 #include "modules/cachestorage/Cache.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 #include "bindings/core/v8/CallbackPromiseAdapter.h" | 9 #include "bindings/core/v8/CallbackPromiseAdapter.h" |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
11 #include "bindings/core/v8/IDLTypes.h" | 11 #include "bindings/core/v8/IDLTypes.h" |
12 #include "bindings/core/v8/NativeValueTraitsImpl.h" | 12 #include "bindings/core/v8/NativeValueTraitsImpl.h" |
13 #include "bindings/core/v8/ScriptPromiseResolver.h" | 13 #include "bindings/core/v8/ScriptPromiseResolver.h" |
14 #include "bindings/core/v8/V8BindingForCore.h" | 14 #include "bindings/core/v8/V8BindingForCore.h" |
15 #include "bindings/core/v8/V8ThrowException.h" | |
16 #include "bindings/modules/v8/V8Response.h" | 15 #include "bindings/modules/v8/V8Response.h" |
17 #include "core/dom/DOMException.h" | 16 #include "core/dom/DOMException.h" |
18 #include "core/inspector/ConsoleMessage.h" | 17 #include "core/inspector/ConsoleMessage.h" |
19 #include "modules/cachestorage/CacheStorageError.h" | 18 #include "modules/cachestorage/CacheStorageError.h" |
20 #include "modules/fetch/BodyStreamBuffer.h" | 19 #include "modules/fetch/BodyStreamBuffer.h" |
21 #include "modules/fetch/FetchDataLoader.h" | 20 #include "modules/fetch/FetchDataLoader.h" |
22 #include "modules/fetch/GlobalFetch.h" | 21 #include "modules/fetch/GlobalFetch.h" |
23 #include "modules/fetch/Request.h" | 22 #include "modules/fetch/Request.h" |
24 #include "modules/fetch/Response.h" | 23 #include "modules/fetch/Response.h" |
25 #include "platform/HTTPNames.h" | 24 #include "platform/HTTPNames.h" |
26 #include "platform/Histogram.h" | 25 #include "platform/Histogram.h" |
27 #include "platform/bindings/ScriptState.h" | 26 #include "platform/bindings/ScriptState.h" |
| 27 #include "platform/bindings/V8ThrowException.h" |
28 #include "public/platform/modules/serviceworker/WebServiceWorkerCache.h" | 28 #include "public/platform/modules/serviceworker/WebServiceWorkerCache.h" |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 // FIXME: Consider using CallbackPromiseAdapter. | 34 // FIXME: Consider using CallbackPromiseAdapter. |
35 class CacheMatchCallbacks : public WebServiceWorkerCache::CacheMatchCallbacks { | 35 class CacheMatchCallbacks : public WebServiceWorkerCache::CacheMatchCallbacks { |
36 WTF_MAKE_NONCOPYABLE(CacheMatchCallbacks); | 36 WTF_MAKE_NONCOPYABLE(CacheMatchCallbacks); |
37 | 37 |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 WTF::MakeUnique<CacheWithRequestsCallbacks>(resolver), web_request, | 700 WTF::MakeUnique<CacheWithRequestsCallbacks>(resolver), web_request, |
701 ToWebQueryParams(options)); | 701 ToWebQueryParams(options)); |
702 return promise; | 702 return promise; |
703 } | 703 } |
704 | 704 |
705 WebServiceWorkerCache* Cache::WebCache() const { | 705 WebServiceWorkerCache* Cache::WebCache() const { |
706 return web_cache_.get(); | 706 return web_cache_.get(); |
707 } | 707 } |
708 | 708 |
709 } // namespace blink | 709 } // namespace blink |
OLD | NEW |