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

Side by Side Diff: content/shell/browser/shell_devtools_frontend.cc

Issue 220253002: Add net/base/filename_util.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/shell/browser/shell_devtools_frontend.h" 5 #include "content/shell/browser/shell_devtools_frontend.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "content/public/browser/devtools_http_handler.h" 11 #include "content/public/browser/devtools_http_handler.h"
12 #include "content/public/browser/devtools_manager.h" 12 #include "content/public/browser/devtools_manager.h"
13 #include "content/public/browser/render_frame_host.h" 13 #include "content/public/browser/render_frame_host.h"
14 #include "content/public/browser/render_view_host.h" 14 #include "content/public/browser/render_view_host.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "content/public/browser/web_contents_view.h" 16 #include "content/public/browser/web_contents_view.h"
17 #include "content/public/common/content_client.h" 17 #include "content/public/common/content_client.h"
18 #include "content/shell/browser/shell.h" 18 #include "content/shell/browser/shell.h"
19 #include "content/shell/browser/shell_browser_context.h" 19 #include "content/shell/browser/shell_browser_context.h"
20 #include "content/shell/browser/shell_browser_main_parts.h" 20 #include "content/shell/browser/shell_browser_main_parts.h"
21 #include "content/shell/browser/shell_content_browser_client.h" 21 #include "content/shell/browser/shell_content_browser_client.h"
22 #include "content/shell/browser/shell_devtools_delegate.h" 22 #include "content/shell/browser/shell_devtools_delegate.h"
23 #include "content/shell/common/shell_switches.h" 23 #include "content/shell/common/shell_switches.h"
24 #include "net/base/net_util.h" 24 #include "net/base/filename_util.h"
25 25
26 namespace content { 26 namespace content {
27 27
28 // DevTools frontend path for inspector LayoutTests. 28 // DevTools frontend path for inspector LayoutTests.
29 GURL GetDevToolsPathAsURL(const std::string& settings) { 29 GURL GetDevToolsPathAsURL(const std::string& settings) {
30 base::FilePath dir_exe; 30 base::FilePath dir_exe;
31 if (!PathService::Get(base::DIR_EXE, &dir_exe)) { 31 if (!PathService::Get(base::DIR_EXE, &dir_exe)) {
32 NOTREACHED(); 32 NOTREACHED();
33 return GURL(); 33 return GURL();
34 } 34 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 void ShellDevToolsFrontend::WebContentsDestroyed(WebContents* web_contents) { 126 void ShellDevToolsFrontend::WebContentsDestroyed(WebContents* web_contents) {
127 DevToolsManager::GetInstance()->ClientHostClosing(frontend_host_.get()); 127 DevToolsManager::GetInstance()->ClientHostClosing(frontend_host_.get());
128 delete this; 128 delete this;
129 } 129 }
130 130
131 void ShellDevToolsFrontend::InspectedContentsClosing() { 131 void ShellDevToolsFrontend::InspectedContentsClosing() {
132 frontend_shell_->Close(); 132 frontend_shell_->Close();
133 } 133 }
134 134
135 } // namespace content 135 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_browser_main_parts.cc ('k') | content/shell/browser/shell_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698