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