OLD | NEW |
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 Loading... |
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 |
OLD | NEW |