| 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 <algorithm> |
| 8 #include <memory> |
| 9 #include <utility> |
| 7 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 8 #include "platform/weborigin/KURL.h" | 11 #include "platform/weborigin/KURL.h" |
| 9 #include "platform/weborigin/SecurityOrigin.h" | 12 #include "platform/weborigin/SecurityOrigin.h" |
| 13 #include "platform/wtf/Noncopyable.h" |
| 14 #include "platform/wtf/PassRefPtr.h" |
| 15 #include "platform/wtf/PtrUtil.h" |
| 16 #include "platform/wtf/RefCounted.h" |
| 17 #include "platform/wtf/RefPtr.h" |
| 18 #include "platform/wtf/Vector.h" |
| 19 #include "platform/wtf/text/StringBuilder.h" |
| 10 #include "public/platform/Platform.h" | 20 #include "public/platform/Platform.h" |
| 11 #include "public/platform/WebSecurityOrigin.h" | 21 #include "public/platform/WebSecurityOrigin.h" |
| 12 #include "public/platform/WebString.h" | 22 #include "public/platform/WebString.h" |
| 13 #include "public/platform/WebURL.h" | 23 #include "public/platform/WebURL.h" |
| 14 #include "public/platform/WebVector.h" | 24 #include "public/platform/WebVector.h" |
| 15 #include "public/platform/modules/serviceworker/WebServiceWorkerCache.h" | 25 #include "public/platform/modules/serviceworker/WebServiceWorkerCache.h" |
| 16 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheError.h" | 26 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheError.h" |
| 17 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheStorage.h" | 27 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheStorage.h" |
| 18 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" | 28 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" |
| 19 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h" | 29 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h" |
| 20 #include "wtf/Noncopyable.h" | |
| 21 #include "wtf/PassRefPtr.h" | |
| 22 #include "wtf/PtrUtil.h" | |
| 23 #include "wtf/RefCounted.h" | |
| 24 #include "wtf/RefPtr.h" | |
| 25 #include "wtf/Vector.h" | |
| 26 #include "wtf/text/StringBuilder.h" | |
| 27 #include <algorithm> | |
| 28 #include <memory> | |
| 29 #include <utility> | |
| 30 | 30 |
| 31 using blink::protocol::Array; | 31 using blink::protocol::Array; |
| 32 using blink::protocol::CacheStorage::Cache; | 32 using blink::protocol::CacheStorage::Cache; |
| 33 using blink::protocol::CacheStorage::DataEntry; | 33 using blink::protocol::CacheStorage::DataEntry; |
| 34 using blink::protocol::Response; | 34 using blink::protocol::Response; |
| 35 | 35 |
| 36 typedef blink::protocol::CacheStorage::Backend::DeleteCacheCallback | 36 typedef blink::protocol::CacheStorage::Backend::DeleteCacheCallback |
| 37 DeleteCacheCallback; | 37 DeleteCacheCallback; |
| 38 typedef blink::protocol::CacheStorage::Backend::DeleteEntryCallback | 38 typedef blink::protocol::CacheStorage::Backend::DeleteEntryCallback |
| 39 DeleteEntryCallback; | 39 DeleteEntryCallback; |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 if (!response.isSuccess()) { | 486 if (!response.isSuccess()) { |
| 487 callback->sendFailure(response); | 487 callback->sendFailure(response); |
| 488 return; | 488 return; |
| 489 } | 489 } |
| 490 cache->DispatchOpen(WTF::MakeUnique<GetCacheForDeleteEntry>( | 490 cache->DispatchOpen(WTF::MakeUnique<GetCacheForDeleteEntry>( |
| 491 request, cache_name, std::move(callback)), | 491 request, cache_name, std::move(callback)), |
| 492 WebString(cache_name)); | 492 WebString(cache_name)); |
| 493 } | 493 } |
| 494 | 494 |
| 495 } // namespace blink | 495 } // namespace blink |
| OLD | NEW |