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

Side by Side Diff: chrome/browser/ui/webui/uber/uber_ui.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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/browser/ui/webui/uber/uber_ui.h ('k') | chrome/browser/ui/webui/web_ui_browsertest.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) 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 "chrome/browser/ui/webui/uber/uber_ui.h" 5 #include "chrome/browser/ui/webui/uber/uber_ui.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 10 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
11 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" 11 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
12 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" 12 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
13 #include "chrome/browser/ui/webui/extensions/extensions_ui.h" 13 #include "chrome/browser/ui/webui/extensions/extensions_ui.h"
14 #include "chrome/browser/ui/webui/options2/options_ui2.h" 14 #include "chrome/browser/ui/webui/options2/options_ui2.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
17 #include "content/public/browser/web_ui.h" 17 #include "content/public/browser/web_ui.h"
18 #include "grit/browser_resources.h" 18 #include "grit/browser_resources.h"
19 #include "grit/chromium_strings.h" 19 #include "grit/chromium_strings.h"
20 #include "grit/generated_resources.h" 20 #include "grit/generated_resources.h"
21 21
22 using content::RenderViewHost;
22 using content::WebContents; 23 using content::WebContents;
23 24
24 namespace { 25 namespace {
25 26
26 ChromeWebUIDataSource* CreateUberHTMLSource() { 27 ChromeWebUIDataSource* CreateUberHTMLSource() {
27 ChromeWebUIDataSource* source = 28 ChromeWebUIDataSource* source =
28 new ChromeWebUIDataSource(chrome::kChromeUIUberHost); 29 new ChromeWebUIDataSource(chrome::kChromeUIUberHost);
29 30
30 source->set_json_path("strings.js"); 31 source->set_json_path("strings.js");
31 source->add_resource_path("uber.js", IDR_UBER_JS); 32 source->add_resource_path("uber.js", IDR_UBER_JS);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // UberFrameUI 156 // UberFrameUI
156 157
157 UberFrameUI::UberFrameUI(content::WebUI* web_ui) : WebUIController(web_ui) { 158 UberFrameUI::UberFrameUI(content::WebUI* web_ui) : WebUIController(web_ui) {
158 Profile* profile = Profile::FromWebUI(web_ui); 159 Profile* profile = Profile::FromWebUI(web_ui);
159 profile->GetChromeURLDataManager()->AddDataSource( 160 profile->GetChromeURLDataManager()->AddDataSource(
160 CreateUberFrameHTMLSource()); 161 CreateUberFrameHTMLSource());
161 } 162 }
162 163
163 UberFrameUI::~UberFrameUI() { 164 UberFrameUI::~UberFrameUI() {
164 } 165 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/uber/uber_ui.h ('k') | chrome/browser/ui/webui/web_ui_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698