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

Side by Side Diff: chrome/browser/debugger/inspectable_tab_proxy.cc

Issue 6094004: Bring back 'navigated' notification for --remote-shell-port protocol (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/debugger/inspectable_tab_proxy.h" 5 #include "chrome/browser/debugger/inspectable_tab_proxy.h"
6 6
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "chrome/browser/browser_list.h" 9 #include "chrome/browser/browser_list.h"
10 #include "chrome/browser/debugger/debugger_remote_service.h" 10 #include "chrome/browser/debugger/debugger_remote_service.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 IPC_MESSAGE_HANDLER(DevToolsClientMsg_DebuggerOutput, OnDebuggerOutput); 47 IPC_MESSAGE_HANDLER(DevToolsClientMsg_DebuggerOutput, OnDebuggerOutput);
48 IPC_MESSAGE_UNHANDLED_ERROR() 48 IPC_MESSAGE_UNHANDLED_ERROR()
49 IPC_END_MESSAGE_MAP() 49 IPC_END_MESSAGE_MAP()
50 } 50 }
51 51
52 52
53 void DevToolsClientHostImpl::OnDebuggerOutput(const std::string& data) { 53 void DevToolsClientHostImpl::OnDebuggerOutput(const std::string& data) {
54 service_->DebuggerOutput(id_, data); 54 service_->DebuggerOutput(id_, data);
55 } 55 }
56 56
57 void DevToolsClientHostImpl::FrameNavigate(const std::string& url) { 57 void DevToolsClientHostImpl::FrameNavigating(const std::string& url) {
58 service_->FrameNavigate(id_, url); 58 service_->FrameNavigate(id_, url);
59 } 59 }
60 60
61 void DevToolsClientHostImpl::TabClosed() { 61 void DevToolsClientHostImpl::TabClosed() {
62 service_->TabClosed(id_); 62 service_->TabClosed(id_);
63 } 63 }
64 64
65 InspectableTabProxy::InspectableTabProxy() {} 65 InspectableTabProxy::InspectableTabProxy() {}
66 66
67 InspectableTabProxy::~InspectableTabProxy() {} 67 InspectableTabProxy::~InspectableTabProxy() {}
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 return client_host; 100 return client_host;
101 } 101 }
102 102
103 void InspectableTabProxy::OnRemoteDebuggerDetached() { 103 void InspectableTabProxy::OnRemoteDebuggerDetached() {
104 while (id_to_client_host_map_.size() > 0) { 104 while (id_to_client_host_map_.size() > 0) {
105 IdToClientHostMap::iterator it = id_to_client_host_map_.begin(); 105 IdToClientHostMap::iterator it = id_to_client_host_map_.begin();
106 it->second->debugger_remote_service()->DetachFromTab( 106 it->second->debugger_remote_service()->DetachFromTab(
107 base::IntToString(it->first), NULL); 107 base::IntToString(it->first), NULL);
108 } 108 }
109 } 109 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698