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

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

Issue 2548263002: [DevTools] Migrate dom, emulation, inspector, network, page and schema handlers to new generator. (Closed)
Patch Set: rebased atop of roll 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 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_protocol_dispatcher.h" 9 #include "content/browser/devtools/protocol/inspector.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class RenderFrameHostImpl; 13 class RenderFrameHostImpl;
14 14
15 namespace devtools { 15 namespace protocol {
16 namespace inspector {
17 16
18 class InspectorHandler { 17 class InspectorHandler : public Inspector::Backend {
19 public: 18 public:
20 using Response = DevToolsProtocolClient::Response; 19 InspectorHandler();
20 ~InspectorHandler() override;
21 21
22 InspectorHandler(); 22 void Wire(UberDispatcher*);
23 virtual ~InspectorHandler();
24
25 void SetClient(std::unique_ptr<Client> client);
26 void SetRenderFrameHost(RenderFrameHostImpl* host); 23 void SetRenderFrameHost(RenderFrameHostImpl* host);
27 24
28 void TargetCrashed(); 25 void TargetCrashed();
29 void TargetDetached(const std::string& reason); 26 void TargetDetached(const std::string& reason);
30 27
31 Response Enable(); 28 Response Enable() override;
32 Response Disable(); 29 Response Disable() override;
33 30
34 private: 31 private:
35 std::unique_ptr<Client> client_; 32 std::unique_ptr<Inspector::Frontend> frontend_;
36 RenderFrameHostImpl* host_; 33 RenderFrameHostImpl* host_;
37 34
38 DISALLOW_COPY_AND_ASSIGN(InspectorHandler); 35 DISALLOW_COPY_AND_ASSIGN(InspectorHandler);
39 }; 36 };
40 37
41 } // namespace inspector 38 } // namespace protocol
42 } // namespace devtools
43 } // namespace content 39 } // namespace content
44 40
45 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_ 41 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INSPECTOR_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/emulation_handler.cc ('k') | content/browser/devtools/protocol/inspector_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698