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