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 #include "content/browser/devtools/protocol/devtools_domain_handler.h" | 5 #include "content/browser/devtools/protocol/devtools_domain_handler.h" |
6 | 6 |
| 7 #include "content/browser/devtools/devtools_agent_host_impl.h" |
7 #include "content/browser/devtools/protocol/protocol.h" | 8 #include "content/browser/devtools/protocol/protocol.h" |
8 | 9 |
9 namespace content { | 10 namespace content { |
10 namespace protocol { | 11 namespace protocol { |
11 | 12 |
| 13 // static |
| 14 DevToolsSession* DevToolsDomainHandler::GetFirstSession( |
| 15 DevToolsAgentHostImpl* host) { |
| 16 return host->session(); |
| 17 } |
| 18 |
12 DevToolsDomainHandler::DevToolsDomainHandler(const std::string& name) | 19 DevToolsDomainHandler::DevToolsDomainHandler(const std::string& name) |
13 : name_(name) { | 20 : name_(name) { |
14 } | 21 } |
15 | 22 |
16 DevToolsDomainHandler::~DevToolsDomainHandler() { | 23 DevToolsDomainHandler::~DevToolsDomainHandler() { |
17 } | 24 } |
18 | 25 |
19 void DevToolsDomainHandler::SetRenderFrameHost(RenderFrameHostImpl* host) { | 26 void DevToolsDomainHandler::SetRenderFrameHost(RenderFrameHostImpl* host) { |
20 } | 27 } |
21 | 28 |
22 void DevToolsDomainHandler::Wire(UberDispatcher* dispatcher) { | 29 void DevToolsDomainHandler::Wire(UberDispatcher* dispatcher) { |
23 } | 30 } |
24 | 31 |
25 Response DevToolsDomainHandler::Disable() { | 32 Response DevToolsDomainHandler::Disable() { |
26 return Response::OK(); | 33 return Response::OK(); |
27 } | 34 } |
28 | 35 |
29 } // namespace protocol | 36 } // namespace protocol |
30 } // namespace content | 37 } // namespace content |
OLD | NEW |