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

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

Issue 11633035: DevTools: prepare workers for DevToolsManager::Attach(Detach)ClientHost removal. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Patch for landing Created 8 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/devtools_agent_host.h" 5 #include "content/browser/devtools/devtools_agent_host.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "content/common/devtools_messages.h" 8 #include "content/common/devtools_messages.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 void DevToolsAgentHost::AddMessageToConsole(ConsoleMessageLevel level, 42 void DevToolsAgentHost::AddMessageToConsole(ConsoleMessageLevel level,
43 const std::string& message) { 43 const std::string& message) {
44 SendMessageToAgent(new DevToolsAgentMsg_AddMessageToConsole( 44 SendMessageToAgent(new DevToolsAgentMsg_AddMessageToConsole(
45 MSG_ROUTING_NONE, 45 MSG_ROUTING_NONE,
46 level, 46 level,
47 message)); 47 message));
48 } 48 }
49 49
50 void DevToolsAgentHost::NotifyCloseListener() { 50 bool DevToolsAgentHost::NotifyCloseListener() {
51 if (close_listener_) { 51 if (close_listener_) {
52 close_listener_->AgentHostClosing(this); 52 close_listener_->AgentHostClosing(this);
53 close_listener_ = NULL; 53 close_listener_ = NULL;
54 return true;
54 } 55 }
56 return false;
55 } 57 }
56 58
57 } // namespace content 59 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_agent_host.h ('k') | content/browser/devtools/devtools_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698