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

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

Issue 23316003: [content shell] move browser process stuff into browser/ subdir (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/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 "content/public/browser/devtools_http_handler.h" 9 #include "content/public/browser/devtools_http_handler.h"
10 #include "content/public/browser/devtools_manager.h" 10 #include "content/public/browser/devtools_manager.h"
11 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
12 #include "content/public/browser/web_contents_view.h" 12 #include "content/public/browser/web_contents_view.h"
13 #include "content/public/common/content_client.h" 13 #include "content/public/common/content_client.h"
14 #include "content/shell/browser/shell.h"
15 #include "content/shell/browser/shell_browser_context.h"
16 #include "content/shell/browser/shell_browser_main_parts.h"
17 #include "content/shell/browser/shell_content_browser_client.h"
18 #include "content/shell/browser/shell_devtools_delegate.h"
14 #include "content/shell/common/shell_switches.h" 19 #include "content/shell/common/shell_switches.h"
15 #include "content/shell/shell.h"
16 #include "content/shell/shell_browser_context.h"
17 #include "content/shell/shell_browser_main_parts.h"
18 #include "content/shell/shell_content_browser_client.h"
19 #include "content/shell/shell_devtools_delegate.h"
20 #include "net/base/net_util.h" 20 #include "net/base/net_util.h"
21 21
22 namespace content { 22 namespace content {
23 23
24 namespace { 24 namespace {
25 25
26 // DevTools frontend path for inspector LayoutTests. 26 // DevTools frontend path for inspector LayoutTests.
27 GURL GetDevToolsPathAsURL() { 27 GURL GetDevToolsPathAsURL() {
28 base::FilePath dir_exe; 28 base::FilePath dir_exe;
29 if (!PathService::Get(base::DIR_EXE, &dir_exe)) { 29 if (!PathService::Get(base::DIR_EXE, &dir_exe)) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void ShellDevToolsFrontend::WebContentsDestroyed(WebContents* web_contents) { 98 void ShellDevToolsFrontend::WebContentsDestroyed(WebContents* web_contents) {
99 DevToolsManager::GetInstance()->ClientHostClosing(frontend_host_.get()); 99 DevToolsManager::GetInstance()->ClientHostClosing(frontend_host_.get());
100 delete this; 100 delete this;
101 } 101 }
102 102
103 void ShellDevToolsFrontend::InspectedContentsClosing() { 103 void ShellDevToolsFrontend::InspectedContentsClosing() {
104 frontend_shell_->Close(); 104 frontend_shell_->Close();
105 } 105 }
106 106
107 } // namespace content 107 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_devtools_frontend.h ('k') | content/shell/browser/shell_download_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698