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

Side by Side Diff: content/browser/debugger/devtools_frontend_host.cc

Issue 10391089: Chrome Crashes after clicking try these suggestions link in Developer Tools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/debugger/devtools_frontend_host.h" 5 #include "content/browser/debugger/devtools_frontend_host.h"
6 6
7 #include "content/browser/debugger/devtools_manager_impl.h" 7 #include "content/browser/debugger/devtools_manager_impl.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 #include "content/browser/web_contents/web_contents_impl.h" 9 #include "content/browser/web_contents/web_contents_impl.h"
10 #include "content/common/devtools_messages.h" 10 #include "content/common/devtools_messages.h"
(...skipping 19 matching lines...) Expand all
30 30
31 DevToolsFrontendHost::DevToolsFrontendHost( 31 DevToolsFrontendHost::DevToolsFrontendHost(
32 WebContentsImpl* web_contents, 32 WebContentsImpl* web_contents,
33 DevToolsFrontendHostDelegate* delegate) 33 DevToolsFrontendHostDelegate* delegate)
34 : RenderViewHostObserver(web_contents->GetRenderViewHost()), 34 : RenderViewHostObserver(web_contents->GetRenderViewHost()),
35 web_contents_(web_contents), 35 web_contents_(web_contents),
36 delegate_(delegate) { 36 delegate_(delegate) {
37 } 37 }
38 38
39 DevToolsFrontendHost::~DevToolsFrontendHost() { 39 DevToolsFrontendHost::~DevToolsFrontendHost() {
40 DevToolsManager::GetInstance()->ClientHostClosing(this);
40 } 41 }
41 42
42 void DevToolsFrontendHost::DispatchOnInspectorFrontend( 43 void DevToolsFrontendHost::DispatchOnInspectorFrontend(
43 const std::string& message) { 44 const std::string& message) {
44 RenderViewHostImpl* target_host = 45 RenderViewHostImpl* target_host =
45 static_cast<RenderViewHostImpl*>(web_contents_->GetRenderViewHost()); 46 static_cast<RenderViewHostImpl*>(web_contents_->GetRenderViewHost());
46 target_host->Send(new DevToolsClientMsg_DispatchOnInspectorFrontend( 47 target_host->Send(new DevToolsClientMsg_DispatchOnInspectorFrontend(
47 target_host->GetRoutingID(), 48 target_host->GetRoutingID(),
48 message)); 49 message));
49 } 50 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 124
124 void DevToolsFrontendHost::OnRequestUndockWindow() { 125 void DevToolsFrontendHost::OnRequestUndockWindow() {
125 delegate_->UndockWindow(); 126 delegate_->UndockWindow();
126 } 127 }
127 128
128 void DevToolsFrontendHost::OnRequestSetDockSide(const std::string& side) { 129 void DevToolsFrontendHost::OnRequestSetDockSide(const std::string& side) {
129 delegate_->SetDockSide(side); 130 delegate_->SetDockSide(side);
130 } 131 }
131 132
132 } // namespace content 133 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698