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

Side by Side Diff: chrome/browser/ui/webui/devtools_ui.cc

Issue 7384008: Revert 92668 - Remove more unnecessary ChromeURLRequestContext members. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 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) 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/browser/ui/webui/devtools_ui.h" 5 #include "chrome/browser/ui/webui/devtools_ui.h"
6 6
7 #include "base/memory/scoped_ptr.h"
8 #include "base/string_util.h" 7 #include "base/string_util.h"
9 #include "chrome/browser/net/chrome_url_request_context.h" 8 #include "chrome/browser/net/chrome_url_request_context.h"
10 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h" 10 #include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h"
12 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
13 #include "content/browser/browser_thread.h" 12 #include "content/browser/browser_thread.h"
14 #include "content/browser/renderer_host/render_view_host.h" 13 #include "content/browser/renderer_host/render_view_host.h"
15 #include "content/browser/tab_contents/tab_contents.h" 14 #include "content/browser/tab_contents/tab_contents.h"
16 #include "content/common/devtools_messages.h" 15 #include "content/common/devtools_messages.h"
17 #include "grit/devtools_resources_map.h" 16 #include "grit/devtools_resources_map.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 98
100 DevToolsUI::DevToolsUI(TabContents* contents) : ChromeWebUI(contents) { 99 DevToolsUI::DevToolsUI(TabContents* contents) : ChromeWebUI(contents) {
101 DevToolsDataSource* data_source = new DevToolsDataSource(); 100 DevToolsDataSource* data_source = new DevToolsDataSource();
102 contents->profile()->GetChromeURLDataManager()->AddDataSource(data_source); 101 contents->profile()->GetChromeURLDataManager()->AddDataSource(data_source);
103 } 102 }
104 103
105 void DevToolsUI::RenderViewCreated(RenderViewHost* render_view_host) { 104 void DevToolsUI::RenderViewCreated(RenderViewHost* render_view_host) {
106 render_view_host->Send(new DevToolsMsg_SetupDevToolsClient( 105 render_view_host->Send(new DevToolsMsg_SetupDevToolsClient(
107 render_view_host->routing_id())); 106 render_view_host->routing_id()));
108 } 107 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chrome_url_data_manager_backend.cc ('k') | chrome/browser/ui/webui/options/cookies_view_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698