| OLD | NEW |
| 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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_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/inspector.h" | 10 #include "content/browser/devtools/protocol/inspector.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 InspectorHandler : public Inspector::Backend { | 18 class InspectorHandler : public DevToolsDomainHandler, |
| 19 public Inspector::Backend { |
| 18 public: | 20 public: |
| 19 InspectorHandler(); | 21 InspectorHandler(); |
| 20 ~InspectorHandler() override; | 22 ~InspectorHandler() override; |
| 21 | 23 |
| 22 void Wire(UberDispatcher*); | 24 void Wire(UberDispatcher* dispatcher) override; |
| 23 void SetRenderFrameHost(RenderFrameHostImpl* host); | 25 void SetRenderFrameHost(RenderFrameHostImpl* host) override; |
| 24 | 26 |
| 25 void TargetCrashed(); | 27 void TargetCrashed(); |
| 26 void TargetDetached(const std::string& reason); | 28 void TargetDetached(const std::string& reason); |
| 27 | 29 |
| 28 Response Enable() override; | 30 Response Enable() override; |
| 29 Response Disable() override; | 31 Response Disable() override; |
| 30 | 32 |
| 31 private: | 33 private: |
| 32 std::unique_ptr<Inspector::Frontend> frontend_; | 34 std::unique_ptr<Inspector::Frontend> frontend_; |
| 33 RenderFrameHostImpl* host_; | 35 RenderFrameHostImpl* host_; |
| 34 | 36 |
| 35 DISALLOW_COPY_AND_ASSIGN(InspectorHandler); | 37 DISALLOW_COPY_AND_ASSIGN(InspectorHandler); |
| 36 }; | 38 }; |
| 37 | 39 |
| 38 } // namespace protocol | 40 } // namespace protocol |
| 39 } // namespace content | 41 } // namespace content |
| 40 | 42 |
| 41 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_ | 43 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_ |
| OLD | NEW |