| 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_DEVTOOLS_DOMAIN_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_DOMAIN_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_DOMAIN_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_DOMAIN_HANDLER_H_ |
| 7 | 7 |
| 8 #include "content/browser/devtools/protocol/forward.h" | 8 #include "content/browser/devtools/protocol/forward.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 class DevToolsSession; | |
| 13 class DevToolsAgentHostImpl; | |
| 14 class RenderFrameHostImpl; | 12 class RenderFrameHostImpl; |
| 15 | 13 |
| 16 namespace protocol { | 14 namespace protocol { |
| 17 | 15 |
| 18 class DevToolsDomainHandler { | 16 class DevToolsDomainHandler { |
| 19 public: | 17 public: |
| 20 explicit DevToolsDomainHandler(const std::string& name); | 18 explicit DevToolsDomainHandler(const std::string& name); |
| 21 virtual ~DevToolsDomainHandler(); | 19 virtual ~DevToolsDomainHandler(); |
| 22 | 20 |
| 23 virtual void SetRenderFrameHost(RenderFrameHostImpl* host); | 21 virtual void SetRenderFrameHost(RenderFrameHostImpl* host); |
| 24 virtual void Wire(UberDispatcher* dispatcher); | 22 virtual void Wire(UberDispatcher* dispatcher); |
| 25 virtual Response Disable(); | 23 virtual Response Disable(); |
| 26 | 24 |
| 27 const std::string& name() const { return name_; } | 25 const std::string& name() const { return name_; } |
| 28 | 26 |
| 29 protected: | |
| 30 static DevToolsSession* GetFirstSession(DevToolsAgentHostImpl* host); | |
| 31 | |
| 32 private: | 27 private: |
| 33 std::string name_; | 28 std::string name_; |
| 34 | 29 |
| 35 DISALLOW_COPY_AND_ASSIGN(DevToolsDomainHandler); | 30 DISALLOW_COPY_AND_ASSIGN(DevToolsDomainHandler); |
| 36 }; | 31 }; |
| 37 | 32 |
| 38 } // namespace protocol | 33 } // namespace protocol |
| 39 } // namespace content | 34 } // namespace content |
| 40 | 35 |
| 41 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_DOMAIN_HANDLER_H_ | 36 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_DOMAIN_HANDLER_H_ |
| OLD | NEW |