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

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

Issue 1752213003: DevTools: migrate protocol dispatcher off RefPtr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 4 years, 9 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/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 typedef String ErrorString; 15 typedef String ErrorString;
16 16
17 class MODULES_EXPORT InspectorCacheStorageAgent final : public InspectorBaseAgen t<InspectorCacheStorageAgent, protocol::Frontend::CacheStorage>, public protocol ::Dispatcher::CacheStorageCommandHandler { 17 class MODULES_EXPORT InspectorCacheStorageAgent final : public InspectorBaseAgen t<InspectorCacheStorageAgent, protocol::Frontend::CacheStorage>, public protocol ::Dispatcher::CacheStorageCommandHandler {
18 WTF_MAKE_NONCOPYABLE(InspectorCacheStorageAgent); 18 WTF_MAKE_NONCOPYABLE(InspectorCacheStorageAgent);
19 19
20 public: 20 public:
21 static PassOwnPtrWillBeRawPtr<InspectorCacheStorageAgent> create() 21 static PassOwnPtrWillBeRawPtr<InspectorCacheStorageAgent> create()
22 { 22 {
23 return adoptPtrWillBeNoop(new InspectorCacheStorageAgent()); 23 return adoptPtrWillBeNoop(new InspectorCacheStorageAgent());
24 } 24 }
25 25
26 ~InspectorCacheStorageAgent() override; 26 ~InspectorCacheStorageAgent() override;
27 27
28 DECLARE_VIRTUAL_TRACE(); 28 DECLARE_VIRTUAL_TRACE();
29 29
30 void requestCacheNames(ErrorString*, const String& in_securityOrigin, PassRe fPtr<RequestCacheNamesCallback>) override; 30 void requestCacheNames(ErrorString*, const String& in_securityOrigin, PassOw nPtr<RequestCacheNamesCallback>) override;
31 void requestEntries(ErrorString*, const String& in_cacheId, int in_skipCount , int in_pageSize, PassRefPtr<RequestEntriesCallback>) override; 31 void requestEntries(ErrorString*, const String& in_cacheId, int in_skipCount , int in_pageSize, PassOwnPtr<RequestEntriesCallback>) override;
32 void deleteCache(ErrorString*, const String& in_cacheId, PassRefPtr<DeleteCa cheCallback>) override; 32 void deleteCache(ErrorString*, const String& in_cacheId, PassOwnPtr<DeleteCa cheCallback>) override;
33 void deleteEntry(ErrorString*, const String& in_cacheId, const String& in_re quest, PassRefPtr<DeleteEntryCallback>) override; 33 void deleteEntry(ErrorString*, const String& in_cacheId, const String& in_re quest, PassOwnPtr<DeleteEntryCallback>) override;
34 34
35 private: 35 private:
36 explicit InspectorCacheStorageAgent(); 36 explicit InspectorCacheStorageAgent();
37 }; 37 };
38 38
39 } // namespace blink 39 } // namespace blink
40 40
41 #endif // InspectorCacheStorageAgent_h 41 #endif // InspectorCacheStorageAgent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698