| OLD | NEW |
| 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/devtools_protocol_handler.h" | 9 #include "content/browser/devtools/protocol/storage.h" |
| 10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" | |
| 11 | 10 |
| 12 namespace content { | 11 namespace content { |
| 13 | 12 |
| 14 class RenderFrameHost; | 13 class RenderFrameHostImpl; |
| 15 | 14 |
| 16 namespace devtools { | 15 namespace protocol { |
| 17 namespace storage { | |
| 18 | 16 |
| 19 class StorageHandler { | 17 class StorageHandler : public Storage::Backend { |
| 20 public: | 18 public: |
| 21 typedef DevToolsProtocolClient::Response Response; | 19 StorageHandler(); |
| 20 ~StorageHandler() override; |
| 22 | 21 |
| 23 StorageHandler(); | 22 void Wire(UberDispatcher*); |
| 24 ~StorageHandler(); | 23 void SetRenderFrameHost(RenderFrameHostImpl* host); |
| 25 | 24 Response Disable() override; |
| 26 void SetRenderFrameHost(RenderFrameHost* host); | |
| 27 | 25 |
| 28 Response ClearDataForOrigin( | 26 Response ClearDataForOrigin( |
| 29 const std::string& origin, | 27 const std::string& origin, |
| 30 const std::string& storage_types); | 28 const std::string& storage_types) override; |
| 31 | 29 |
| 32 private: | 30 private: |
| 33 RenderFrameHost* host_; | 31 RenderFrameHostImpl* host_; |
| 34 | 32 |
| 35 DISALLOW_COPY_AND_ASSIGN(StorageHandler); | 33 DISALLOW_COPY_AND_ASSIGN(StorageHandler); |
| 36 }; | 34 }; |
| 37 | 35 |
| 38 } // namespace storage | 36 } // namespace protocol |
| 39 } // namespace devtools | |
| 40 } // namespace content | 37 } // namespace content |
| 41 | 38 |
| 42 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_STORAGE_HANDLER_H_ | 39 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_STORAGE_HANDLER_H_ |
| OLD | NEW |