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/InspectorFrontend.h" | 8 #include "core/InspectorFrontend.h" |
9 #include "core/inspector/InspectorBaseAgent.h" | 9 #include "core/inspector/InspectorBaseAgent.h" |
10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
11 #include "wtf/PassOwnPtr.h" | 11 #include "wtf/PassOwnPtr.h" |
12 #include "wtf/text/WTFString.h" | 12 #include "wtf/text/WTFString.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 typedef String ErrorString; | 16 typedef String ErrorString; |
17 | 17 |
18 class MODULES_EXPORT InspectorCacheStorageAgent final : public InspectorBaseAgen
t<InspectorCacheStorageAgent, InspectorFrontend::CacheStorage>, public Inspector
BackendDispatcher::CacheStorageCommandHandler { | 18 class MODULES_EXPORT InspectorCacheStorageAgent final : public InspectorBaseAgen
t<InspectorCacheStorageAgent, InspectorFrontend::CacheStorage>, public Inspector
BackendDispatcher::CacheStorageCommandHandler { |
19 WTF_MAKE_NONCOPYABLE(InspectorCacheStorageAgent); | 19 WTF_MAKE_NONCOPYABLE(InspectorCacheStorageAgent); |
20 | 20 |
21 public: | 21 public: |
22 static PassOwnPtrWillBeRawPtr<InspectorCacheStorageAgent> create() | 22 static PassOwnPtrWillBeRawPtr<InspectorCacheStorageAgent> create() |
23 { | 23 { |
24 return adoptPtrWillBeNoop(new InspectorCacheStorageAgent()); | 24 return adoptPtrWillBeNoop(new InspectorCacheStorageAgent()); |
25 } | 25 } |
26 | 26 |
27 virtual ~InspectorCacheStorageAgent(); | 27 ~InspectorCacheStorageAgent() override; |
28 | 28 |
29 DECLARE_VIRTUAL_TRACE(); | 29 DECLARE_VIRTUAL_TRACE(); |
30 | 30 |
31 virtual void requestCacheNames(ErrorString*, const String& securityOrigin, P
assRefPtrWillBeRawPtr<RequestCacheNamesCallback>) override; | 31 void requestCacheNames(ErrorString*, const String& securityOrigin, PassRefPt
rWillBeRawPtr<RequestCacheNamesCallback>) override; |
32 virtual void requestEntries(ErrorString*, const String& cacheId, int skipCou
nt, int pageSize, PassRefPtrWillBeRawPtr<RequestEntriesCallback>) override; | 32 void requestEntries(ErrorString*, const String& cacheId, int skipCount, int
pageSize, PassRefPtrWillBeRawPtr<RequestEntriesCallback>) override; |
33 virtual void deleteCache(ErrorString*, const String& cacheId, PassRefPtrWill
BeRawPtr<DeleteCacheCallback>) override; | 33 void deleteCache(ErrorString*, const String& cacheId, PassRefPtrWillBeRawPtr
<DeleteCacheCallback>) override; |
34 virtual void deleteEntry(ErrorString*, const String& cacheId, const String&
request, PassRefPtrWillBeRawPtr<DeleteEntryCallback>) override; | 34 void deleteEntry(ErrorString*, const String& cacheId, const String& request,
PassRefPtrWillBeRawPtr<DeleteEntryCallback>) override; |
35 | 35 |
36 private: | 36 private: |
37 explicit InspectorCacheStorageAgent(); | 37 explicit InspectorCacheStorageAgent(); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace blink | 40 } // namespace blink |
41 | 41 |
42 #endif // InspectorCacheStorageAgent_h | 42 #endif // InspectorCacheStorageAgent_h |
OLD | NEW |