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

Side by Side Diff: chrome/renderer/devtools_client.cc

Issue 6990059: DevTools: devtools message plumbing between worker and page processes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed extra line Created 9 years, 6 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 | « chrome/renderer/devtools_agent_filter.cc ('k') | content/common/content_message_generator.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/renderer/devtools_client.h" 5 #include "chrome/renderer/devtools_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
11 #include "chrome/common/devtools_messages.h" 11 #include "content/common/devtools_messages.h"
12 #include "content/renderer/render_thread.h" 12 #include "content/renderer/render_thread.h"
13 #include "content/renderer/render_view.h" 13 #include "content/renderer/render_view.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontend.h " 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontend.h "
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
16 #include "ui/base/ui_base_switches.h" 16 #include "ui/base/ui_base_switches.h"
17 17
18 using WebKit::WebDevToolsFrontend; 18 using WebKit::WebDevToolsFrontend;
19 using WebKit::WebString; 19 using WebKit::WebString;
20 20
21 DevToolsClient::DevToolsClient(RenderView* render_view) 21 DevToolsClient::DevToolsClient(RenderView* render_view)
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 void DevToolsClient::OnDispatchOnInspectorFrontend(const std::string& message) { 86 void DevToolsClient::OnDispatchOnInspectorFrontend(const std::string& message) {
87 web_tools_frontend_->dispatchOnInspectorFrontend( 87 web_tools_frontend_->dispatchOnInspectorFrontend(
88 WebString::fromUTF8(message)); 88 WebString::fromUTF8(message));
89 } 89 }
90 90
91 bool DevToolsClient::shouldHideScriptsPanel() { 91 bool DevToolsClient::shouldHideScriptsPanel() {
92 CommandLine* cmd = CommandLine::ForCurrentProcess(); 92 CommandLine* cmd = CommandLine::ForCurrentProcess();
93 return cmd->HasSwitch(switches::kRemoteShellPort); 93 return cmd->HasSwitch(switches::kRemoteShellPort);
94 } 94 }
OLDNEW
« no previous file with comments | « chrome/renderer/devtools_agent_filter.cc ('k') | content/common/content_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698