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

Side by Side Diff: content/browser/devtools/protocol/dom_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_DOM_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DOM_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DOM_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DOM_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/dom.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 dom {
17 16
18 class DOMHandler { 17 class DOMHandler : public DOM::Backend {
19 public: 18 public:
20 typedef DevToolsProtocolClient::Response Response; 19 DOMHandler();
20 ~DOMHandler() override;
21 21
22 DOMHandler(); 22 void Wire(UberDispatcher*);
23 virtual ~DOMHandler(); 23 void SetRenderFrameHost(RenderFrameHostImpl* host);
24 Response Disable() override;
24 25
25 void SetRenderFrameHost(RenderFrameHostImpl* host); 26 Response SetFileInputFiles(
26 27 DOM::NodeId node_id,
27 Response SetFileInputFiles(NodeId node_id, 28 std::unique_ptr<protocol::Array<std::string>> files) override;
28 const std::vector<std::string>& files);
29 29
30 private: 30 private:
31 RenderFrameHostImpl* host_; 31 RenderFrameHostImpl* host_;
32 DISALLOW_COPY_AND_ASSIGN(DOMHandler); 32 DISALLOW_COPY_AND_ASSIGN(DOMHandler);
33 }; 33 };
34 34
35 } // namespace dom 35 } // namespace protocol
36 } // namespace devtools
37 } // namespace content 36 } // namespace content
38 37
39 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DOM_HANDLER_H_ 38 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DOM_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698