| 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/InspectorCacheStorageAgent.h" | 5 #include "modules/cachestorage/InspectorCacheStorageAgent.h" |
| 6 | 6 |
| 7 #include "platform/heap/Handle.h" | 7 #include "platform/heap/Handle.h" |
| 8 #include "platform/inspector_protocol/DispatcherBase.h" | |
| 9 #include "platform/inspector_protocol/Values.h" | |
| 10 #include "platform/weborigin/KURL.h" | 8 #include "platform/weborigin/KURL.h" |
| 11 #include "platform/weborigin/SecurityOrigin.h" | 9 #include "platform/weborigin/SecurityOrigin.h" |
| 12 #include "public/platform/Platform.h" | 10 #include "public/platform/Platform.h" |
| 13 #include "public/platform/WebSecurityOrigin.h" | 11 #include "public/platform/WebSecurityOrigin.h" |
| 14 #include "public/platform/WebString.h" | 12 #include "public/platform/WebString.h" |
| 15 #include "public/platform/WebURL.h" | 13 #include "public/platform/WebURL.h" |
| 16 #include "public/platform/WebVector.h" | 14 #include "public/platform/WebVector.h" |
| 17 #include "public/platform/modules/serviceworker/WebServiceWorkerCache.h" | 15 #include "public/platform/modules/serviceworker/WebServiceWorkerCache.h" |
| 18 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheError.h" | 16 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheError.h" |
| 19 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheStorage.h" | 17 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheStorage.h" |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 std::unique_ptr<WebServiceWorkerCacheStorage> cache = assertCacheStorageAndN
ameForId(&errorString, cacheId, &cacheName); | 459 std::unique_ptr<WebServiceWorkerCacheStorage> cache = assertCacheStorageAndN
ameForId(&errorString, cacheId, &cacheName); |
| 462 if (!cache) { | 460 if (!cache) { |
| 463 callback->sendFailure(errorString); | 461 callback->sendFailure(errorString); |
| 464 return; | 462 return; |
| 465 } | 463 } |
| 466 cache->dispatchOpen(new GetCacheForDeleteEntry(request, cacheName, std::move
(callback)), WebString(cacheName)); | 464 cache->dispatchOpen(new GetCacheForDeleteEntry(request, cacheName, std::move
(callback)), WebString(cacheName)); |
| 467 } | 465 } |
| 468 | 466 |
| 469 | 467 |
| 470 } // namespace blink | 468 } // namespace blink |
| OLD | NEW |