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

Side by Side Diff: content/browser/devtools/browser_devtools_agent_host.cc

Issue 2499343002: [DevTools] Introduce DevToolsSession. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/devtools/devtools_agent_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/browser/devtools/browser_devtools_agent_host.h" 5 #include "content/browser/devtools/browser_devtools_agent_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/guid.h" 8 #include "base/guid.h"
9 #include "content/browser/devtools/devtools_protocol_handler.h" 9 #include "content/browser/devtools/devtools_protocol_handler.h"
10 #include "content/browser/devtools/devtools_session.h"
10 #include "content/browser/devtools/protocol/io_handler.h" 11 #include "content/browser/devtools/protocol/io_handler.h"
11 #include "content/browser/devtools/protocol/memory_handler.h" 12 #include "content/browser/devtools/protocol/memory_handler.h"
12 #include "content/browser/devtools/protocol/system_info_handler.h" 13 #include "content/browser/devtools/protocol/system_info_handler.h"
13 #include "content/browser/devtools/protocol/tethering_handler.h" 14 #include "content/browser/devtools/protocol/tethering_handler.h"
14 #include "content/browser/devtools/protocol/tracing_handler.h" 15 #include "content/browser/devtools/protocol/tracing_handler.h"
15 #include "content/browser/frame_host/frame_tree_node.h" 16 #include "content/browser/frame_host/frame_tree_node.h"
16 17
17 namespace content { 18 namespace content {
18 19
19 scoped_refptr<DevToolsAgentHost> DevToolsAgentHost::CreateForBrowser( 20 scoped_refptr<DevToolsAgentHost> DevToolsAgentHost::CreateForBrowser(
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 74
74 bool BrowserDevToolsAgentHost::Close() { 75 bool BrowserDevToolsAgentHost::Close() {
75 return false; 76 return false;
76 } 77 }
77 78
78 void BrowserDevToolsAgentHost::Reload() { 79 void BrowserDevToolsAgentHost::Reload() {
79 } 80 }
80 81
81 bool BrowserDevToolsAgentHost::DispatchProtocolMessage( 82 bool BrowserDevToolsAgentHost::DispatchProtocolMessage(
82 const std::string& message) { 83 const std::string& message) {
83 protocol_handler_->HandleMessage(session_id(), message); 84 protocol_handler_->HandleMessage(session() ? session()->session_id() : 0,
85 message);
84 return true; 86 return true;
85 } 87 }
86 88
87 } // content 89 } // content
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/devtools/devtools_agent_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698