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

Side by Side Diff: chrome/browser/ui/webui/chromeos/mobile_setup_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
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/chromeos/mobile_setup_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 28 matching lines...) Expand all
39 #include "content/public/browser/web_ui_message_handler.h" 39 #include "content/public/browser/web_ui_message_handler.h"
40 #include "googleurl/src/gurl.h" 40 #include "googleurl/src/gurl.h"
41 #include "grit/browser_resources.h" 41 #include "grit/browser_resources.h"
42 #include "grit/chromium_strings.h" 42 #include "grit/chromium_strings.h"
43 #include "grit/generated_resources.h" 43 #include "grit/generated_resources.h"
44 #include "grit/locale_settings.h" 44 #include "grit/locale_settings.h"
45 #include "ui/base/l10n/l10n_util.h" 45 #include "ui/base/l10n/l10n_util.h"
46 #include "ui/base/resource/resource_bundle.h" 46 #include "ui/base/resource/resource_bundle.h"
47 47
48 using content::BrowserThread; 48 using content::BrowserThread;
49 using content::RenderViewHost;
49 using content::WebContents; 50 using content::WebContents;
50 using content::WebUIMessageHandler; 51 using content::WebUIMessageHandler;
51 52
52 namespace { 53 namespace {
53 54
54 // Host page JS API function names. 55 // Host page JS API function names.
55 const char kJsApiStartActivation[] = "startActivation"; 56 const char kJsApiStartActivation[] = "startActivation";
56 const char kJsApiSetTransactionStatus[] = "setTransactionStatus"; 57 const char kJsApiSetTransactionStatus[] = "setTransactionStatus";
57 const char kJsApiPaymentPortalLoad[] = "paymentPortalLoad"; 58 const char kJsApiPaymentPortalLoad[] = "paymentPortalLoad";
58 const char kJsApiResultOK[] = "ok"; 59 const char kJsApiResultOK[] = "ok";
(...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 1402
1402 // Set up the chrome://mobilesetup/ source. 1403 // Set up the chrome://mobilesetup/ source.
1403 Profile* profile = Profile::FromWebUI(web_ui); 1404 Profile* profile = Profile::FromWebUI(web_ui);
1404 profile->GetChromeURLDataManager()->AddDataSource(html_source); 1405 profile->GetChromeURLDataManager()->AddDataSource(html_source);
1405 } 1406 }
1406 1407
1407 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) { 1408 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) {
1408 // Destroyed by the corresponding RenderViewHost 1409 // Destroyed by the corresponding RenderViewHost
1409 new PortalFrameLoadObserver(AsWeakPtr(), host); 1410 new PortalFrameLoadObserver(AsWeakPtr(), host);
1410 } 1411 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/mobile_setup_ui.h ('k') | chrome/browser/ui/webui/constrained_html_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698