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/CacheStorage.h" | 5 #include "modules/cachestorage/CacheStorage.h" |
6 | 6 |
| 7 #include <memory> |
| 8 #include <utility> |
7 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
8 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
9 #include "core/dom/DOMException.h" | 11 #include "core/dom/DOMException.h" |
10 #include "core/dom/ExceptionCode.h" | 12 #include "core/dom/ExceptionCode.h" |
11 #include "core/inspector/ConsoleMessage.h" | 13 #include "core/inspector/ConsoleMessage.h" |
12 #include "modules/cachestorage/CacheStorageError.h" | 14 #include "modules/cachestorage/CacheStorageError.h" |
13 #include "modules/fetch/Request.h" | 15 #include "modules/fetch/Request.h" |
14 #include "modules/fetch/Response.h" | 16 #include "modules/fetch/Response.h" |
15 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheError.h" | 17 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheError.h" |
16 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheStorage.h" | 18 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheStorage.h" |
17 #include "wtf/PtrUtil.h" | 19 #include "wtf/PtrUtil.h" |
18 #include <memory> | |
19 #include <utility> | |
20 | 20 |
21 namespace blink { | 21 namespace blink { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 DOMException* createNoImplementationException() { | 25 DOMException* createNoImplementationException() { |
26 return DOMException::create(NotSupportedError, | 26 return DOMException::create(NotSupportedError, |
27 "No CacheStorage implementation provided."); | 27 "No CacheStorage implementation provided."); |
28 } | 28 } |
29 | 29 |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 353 |
354 void CacheStorage::dispose() { | 354 void CacheStorage::dispose() { |
355 m_webCacheStorage.reset(); | 355 m_webCacheStorage.reset(); |
356 } | 356 } |
357 | 357 |
358 DEFINE_TRACE(CacheStorage) { | 358 DEFINE_TRACE(CacheStorage) { |
359 visitor->trace(m_scopedFetcher); | 359 visitor->trace(m_scopedFetcher); |
360 } | 360 } |
361 | 361 |
362 } // namespace blink | 362 } // namespace blink |
OLD | NEW |