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 #ifndef InspectorCacheStorageAgent_h | 5 #ifndef InspectorCacheStorageAgent_h |
6 #define InspectorCacheStorageAgent_h | 6 #define InspectorCacheStorageAgent_h |
7 | 7 |
8 #include "core/inspector/InspectorBaseAgent.h" | 8 #include "core/inspector/InspectorBaseAgent.h" |
9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
10 #include "wtf/PassOwnPtr.h" | 10 #include "wtf/PassOwnPtr.h" |
11 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 | 15 |
16 class MODULES_EXPORT InspectorCacheStorageAgent final : public InspectorBaseAgen
t<InspectorCacheStorageAgent, protocol::CacheStorage::Frontend>, public protocol
::CacheStorage::Backend { | 16 class MODULES_EXPORT InspectorCacheStorageAgent final : public InspectorBaseAgen
t<protocol::CacheStorage::Metainfo> { |
17 WTF_MAKE_NONCOPYABLE(InspectorCacheStorageAgent); | 17 WTF_MAKE_NONCOPYABLE(InspectorCacheStorageAgent); |
18 | 18 |
19 public: | 19 public: |
20 static InspectorCacheStorageAgent* create() | 20 static InspectorCacheStorageAgent* create() |
21 { | 21 { |
22 return new InspectorCacheStorageAgent(); | 22 return new InspectorCacheStorageAgent(); |
23 } | 23 } |
24 | 24 |
25 ~InspectorCacheStorageAgent() override; | 25 ~InspectorCacheStorageAgent() override; |
26 | 26 |
27 DECLARE_VIRTUAL_TRACE(); | 27 DECLARE_VIRTUAL_TRACE(); |
28 | 28 |
29 void requestCacheNames(ErrorString*, const String& in_securityOrigin, std::u
nique_ptr<RequestCacheNamesCallback>) override; | 29 void requestCacheNames(ErrorString*, const String& in_securityOrigin, std::u
nique_ptr<RequestCacheNamesCallback>) override; |
30 void requestEntries(ErrorString*, const String& in_cacheId, int in_skipCount
, int in_pageSize, std::unique_ptr<RequestEntriesCallback>) override; | 30 void requestEntries(ErrorString*, const String& in_cacheId, int in_skipCount
, int in_pageSize, std::unique_ptr<RequestEntriesCallback>) override; |
31 void deleteCache(ErrorString*, const String& in_cacheId, std::unique_ptr<Del
eteCacheCallback>) override; | 31 void deleteCache(ErrorString*, const String& in_cacheId, std::unique_ptr<Del
eteCacheCallback>) override; |
32 void deleteEntry(ErrorString*, const String& in_cacheId, const String& in_re
quest, std::unique_ptr<DeleteEntryCallback>) override; | 32 void deleteEntry(ErrorString*, const String& in_cacheId, const String& in_re
quest, std::unique_ptr<DeleteEntryCallback>) override; |
33 | 33 |
34 private: | 34 private: |
35 explicit InspectorCacheStorageAgent(); | 35 explicit InspectorCacheStorageAgent(); |
36 }; | 36 }; |
37 | 37 |
38 } // namespace blink | 38 } // namespace blink |
39 | 39 |
40 #endif // InspectorCacheStorageAgent_h | 40 #endif // InspectorCacheStorageAgent_h |
OLD | NEW |