Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: Source/modules/cachestorage/InspectorCacheStorageAgent.h

Issue 1044203004: [Storage] Cache storage inspection on all the frames! (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: comments and rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "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 typedef String ErrorString; 15 typedef String ErrorString;
16 16
17 class ServiceWorkerGlobalScope; 17 class InspectorCacheStorageAgent final : public InspectorBaseAgent<InspectorCach eStorageAgent, InspectorFrontend::CacheStorage>, public InspectorBackendDispatch er::CacheStorageCommandHandler {
18
19 class InspectorCacheStorageAgent final : public InspectorBaseAgent<InspectorCach eStorageAgent, InspectorFrontend::ServiceWorkerCache>, public InspectorBackendDi spatcher::ServiceWorkerCacheCommandHandler {
20 WTF_MAKE_NONCOPYABLE(InspectorCacheStorageAgent); 18 WTF_MAKE_NONCOPYABLE(InspectorCacheStorageAgent);
21 19
22 public: 20 public:
23 static PassOwnPtrWillBeRawPtr<InspectorCacheStorageAgent> create(ServiceWork erGlobalScope* workerGlobalScope) 21 static PassOwnPtrWillBeRawPtr<InspectorCacheStorageAgent> create()
24 { 22 {
25 return adoptPtrWillBeNoop(new InspectorCacheStorageAgent(workerGlobalSco pe)); 23 return adoptPtrWillBeNoop(new InspectorCacheStorageAgent());
26 } 24 }
27 25
28 virtual ~InspectorCacheStorageAgent(); 26 virtual ~InspectorCacheStorageAgent();
29 27
30 DECLARE_VIRTUAL_TRACE(); 28 DECLARE_VIRTUAL_TRACE();
31 29
32 virtual void requestCacheNames(ErrorString*, PassRefPtrWillBeRawPtr<RequestC acheNamesCallback>) override; 30 virtual void requestCacheNames(ErrorString*, const String& securityOrigin, P assRefPtrWillBeRawPtr<RequestCacheNamesCallback>) override;
33 virtual void requestEntries(ErrorString*, const String& cacheName, int skipC ount, int pageSize, PassRefPtrWillBeRawPtr<RequestEntriesCallback>) override; 31 virtual void requestEntries(ErrorString*, const String& cacheId, int skipCou nt, int pageSize, PassRefPtrWillBeRawPtr<RequestEntriesCallback>) override;
34 virtual void deleteCache(ErrorString*, const String& cacheName, PassRefPtrWi llBeRawPtr<DeleteCacheCallback>) override; 32 virtual void deleteCache(ErrorString*, const String& cacheId, PassRefPtrWill BeRawPtr<DeleteCacheCallback>) override;
35 33
36 private: 34 private:
37 explicit InspectorCacheStorageAgent(ServiceWorkerGlobalScope*); 35 explicit InspectorCacheStorageAgent();
38
39 ServiceWorkerGlobalScope* m_globalScope;
40 }; 36 };
41 37
42 } // namespace blink 38 } // namespace blink
43 39
44 #endif // InspectorCacheStorageAgent_h 40 #endif // InspectorCacheStorageAgent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698