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

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

Issue 2590293003: [DevTools] Rework DevToolsSession interaction with domain handlers. (Closed)
Patch Set: addressed comments Created 3 years, 12 months 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_domain_handler.h"
9 #include "content/browser/devtools/protocol/dom.h" 10 #include "content/browser/devtools/protocol/dom.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 DOMHandler : public DOM::Backend { 18 class DOMHandler : public DevToolsDomainHandler,
19 public DOM::Backend {
18 public: 20 public:
19 DOMHandler(); 21 DOMHandler();
20 ~DOMHandler() override; 22 ~DOMHandler() 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 Response Disable() override; 26 Response Disable() override;
25 27
26 Response SetFileInputFiles( 28 Response SetFileInputFiles(
27 DOM::NodeId node_id, 29 DOM::NodeId node_id,
28 std::unique_ptr<protocol::Array<std::string>> files) override; 30 std::unique_ptr<protocol::Array<std::string>> files) override;
29 31
30 private: 32 private:
31 RenderFrameHostImpl* host_; 33 RenderFrameHostImpl* host_;
32 DISALLOW_COPY_AND_ASSIGN(DOMHandler); 34 DISALLOW_COPY_AND_ASSIGN(DOMHandler);
33 }; 35 };
34 36
35 } // namespace protocol 37 } // namespace protocol
36 } // namespace content 38 } // namespace content
37 39
38 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DOM_HANDLER_H_ 40 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DOM_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698