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

Side by Side Diff: content/browser/devtools/protocol/storage_handler.h

Issue 2576643003: Revert of [DevTools] Migrate storage domain to new generator. (Closed)
Patch Set: Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_STORAGE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_STORAGE_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_STORAGE_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_STORAGE_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/browser/devtools/protocol/storage.h" 9 #include "content/browser/devtools/devtools_protocol_handler.h"
10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h"
10 11
11 namespace content { 12 namespace content {
12 13
13 class RenderFrameHostImpl; 14 class RenderFrameHost;
14 15
15 namespace protocol { 16 namespace devtools {
17 namespace storage {
16 18
17 class StorageHandler : public Storage::Backend { 19 class StorageHandler {
18 public: 20 public:
21 typedef DevToolsProtocolClient::Response Response;
22
19 StorageHandler(); 23 StorageHandler();
20 ~StorageHandler() override; 24 ~StorageHandler();
21 25
22 void Wire(UberDispatcher*); 26 void SetRenderFrameHost(RenderFrameHost* host);
23 void SetRenderFrameHost(RenderFrameHostImpl* host);
24 Response Disable() override;
25 27
26 Response ClearDataForOrigin( 28 Response ClearDataForOrigin(
27 const std::string& origin, 29 const std::string& origin,
28 const std::string& storage_types) override; 30 const std::string& storage_types);
29 31
30 private: 32 private:
31 RenderFrameHostImpl* host_; 33 RenderFrameHost* host_;
32 34
33 DISALLOW_COPY_AND_ASSIGN(StorageHandler); 35 DISALLOW_COPY_AND_ASSIGN(StorageHandler);
34 }; 36 };
35 37
36 } // namespace protocol 38 } // namespace storage
39 } // namespace devtools
37 } // namespace content 40 } // namespace content
38 41
39 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_STORAGE_HANDLER_H_ 42 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_STORAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698