| 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/weborigin/KURL.h" | 8 #include "platform/weborigin/KURL.h" |
| 9 #include "platform/weborigin/SecurityOrigin.h" | 9 #include "platform/weborigin/SecurityOrigin.h" |
| 10 #include "public/platform/Platform.h" | 10 #include "public/platform/Platform.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "wtf/RefPtr.h" | 24 #include "wtf/RefPtr.h" |
| 25 #include "wtf/Vector.h" | 25 #include "wtf/Vector.h" |
| 26 #include "wtf/text/StringBuilder.h" | 26 #include "wtf/text/StringBuilder.h" |
| 27 #include <algorithm> | 27 #include <algorithm> |
| 28 #include <memory> | 28 #include <memory> |
| 29 #include <utility> | 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 | 35 |
| 35 typedef blink::protocol::CacheStorage::Backend::DeleteCacheCallback | 36 typedef blink::protocol::CacheStorage::Backend::DeleteCacheCallback |
| 36 DeleteCacheCallback; | 37 DeleteCacheCallback; |
| 37 typedef blink::protocol::CacheStorage::Backend::DeleteEntryCallback | 38 typedef blink::protocol::CacheStorage::Backend::DeleteEntryCallback |
| 38 DeleteEntryCallback; | 39 DeleteEntryCallback; |
| 39 typedef blink::protocol::CacheStorage::Backend::RequestCacheNamesCallback | 40 typedef blink::protocol::CacheStorage::Backend::RequestCacheNamesCallback |
| 40 RequestCacheNamesCallback; | 41 RequestCacheNamesCallback; |
| 41 typedef blink::protocol::CacheStorage::Backend::RequestEntriesCallback | 42 typedef blink::protocol::CacheStorage::Backend::RequestEntriesCallback |
| 42 RequestEntriesCallback; | 43 RequestEntriesCallback; |
| 43 typedef blink::WebServiceWorkerCache::BatchOperation BatchOperation; | 44 typedef blink::WebServiceWorkerCache::BatchOperation BatchOperation; |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 if (!response.isSuccess()) { | 485 if (!response.isSuccess()) { |
| 485 callback->sendFailure(response); | 486 callback->sendFailure(response); |
| 486 return; | 487 return; |
| 487 } | 488 } |
| 488 cache->dispatchOpen(WTF::makeUnique<GetCacheForDeleteEntry>( | 489 cache->dispatchOpen(WTF::makeUnique<GetCacheForDeleteEntry>( |
| 489 request, cacheName, std::move(callback)), | 490 request, cacheName, std::move(callback)), |
| 490 WebString(cacheName)); | 491 WebString(cacheName)); |
| 491 } | 492 } |
| 492 | 493 |
| 493 } // namespace blink | 494 } // namespace blink |
| OLD | NEW |