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

Side by Side Diff: content/browser/devtools/protocol/devtools_domain_handler.cc

Issue 2698883004: DevTools: expose session to handlers. (Closed)
Patch Set: Created 3 years, 10 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 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
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/devtools_domain_handler.h ('k') | content/browser/devtools/protocol/security_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698