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

Side by Side Diff: chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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/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 18 matching lines...) Expand all
29 #include "chrome/browser/profiles/profile.h" 29 #include "chrome/browser/profiles/profile.h"
30 #include "chrome/browser/ui/browser_list.h" 30 #include "chrome/browser/ui/browser_list.h"
31 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 31 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
32 #include "chrome/common/jstemplate_builder.h" 32 #include "chrome/common/jstemplate_builder.h"
33 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
34 #include "chrome/common/render_messages.h" 34 #include "chrome/common/render_messages.h"
35 #include "chrome/common/url_constants.h" 35 #include "chrome/common/url_constants.h"
36 #include "content/public/browser/browser_thread.h" 36 #include "content/public/browser/browser_thread.h"
37 #include "content/public/browser/render_view_host_observer.h" 37 #include "content/public/browser/render_view_host_observer.h"
38 #include "content/public/browser/web_contents.h" 38 #include "content/public/browser/web_contents.h"
39 #include "content/public/browser/web_ui_message_handler.h"
39 #include "googleurl/src/gurl.h" 40 #include "googleurl/src/gurl.h"
40 #include "grit/browser_resources.h" 41 #include "grit/browser_resources.h"
41 #include "grit/chromium_strings.h" 42 #include "grit/chromium_strings.h"
42 #include "grit/generated_resources.h" 43 #include "grit/generated_resources.h"
43 #include "grit/locale_settings.h" 44 #include "grit/locale_settings.h"
44 #include "ui/base/l10n/l10n_util.h" 45 #include "ui/base/l10n/l10n_util.h"
45 #include "ui/base/resource/resource_bundle.h" 46 #include "ui/base/resource/resource_bundle.h"
46 47
47 using content::BrowserThread; 48 using content::BrowserThread;
48 using content::WebContents; 49 using content::WebContents;
50 using content::WebUIMessageHandler;
49 51
50 namespace { 52 namespace {
51 53
52 // Host page JS API function names. 54 // Host page JS API function names.
53 const char kJsApiStartActivation[] = "startActivation"; 55 const char kJsApiStartActivation[] = "startActivation";
54 const char kJsApiSetTransactionStatus[] = "setTransactionStatus"; 56 const char kJsApiSetTransactionStatus[] = "setTransactionStatus";
55 const char kJsApiPaymentPortalLoad[] = "paymentPortalLoad"; 57 const char kJsApiPaymentPortalLoad[] = "paymentPortalLoad";
56 const char kJsApiResultOK[] = "ok"; 58 const char kJsApiResultOK[] = "ok";
57 59
58 const char kJsDeviceStatusChangedCallback[] = 60 const char kJsDeviceStatusChangedCallback[] =
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 // Set up the chrome://mobilesetup/ source. 1363 // Set up the chrome://mobilesetup/ source.
1362 Profile* profile = Profile::FromBrowserContext(contents->GetBrowserContext()); 1364 Profile* profile = Profile::FromBrowserContext(contents->GetBrowserContext());
1363 profile->GetChromeURLDataManager()->AddDataSource(html_source); 1365 profile->GetChromeURLDataManager()->AddDataSource(html_source);
1364 } 1366 }
1365 1367
1366 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) { 1368 void MobileSetupUI::RenderViewCreated(RenderViewHost* host) {
1367 ChromeWebUI::RenderViewCreated(host); 1369 ChromeWebUI::RenderViewCreated(host);
1368 // Destroyed by the corresponding RenderViewHost. 1370 // Destroyed by the corresponding RenderViewHost.
1369 new PortalFrameLoadObserver(host, web_contents()->GetWebUI()); 1371 new PortalFrameLoadObserver(host, web_contents()->GetWebUI());
1370 } 1372 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/mobile_setup_dialog.cc ('k') | chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698