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

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

Issue 2659753002: Convert MobileSetupUI to use the new navigation callbacks. (Closed)
Patch Set: nit Created 3 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc » ('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 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_MOBILE_SETUP_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_MOBILE_SETUP_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_MOBILE_SETUP_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_MOBILE_SETUP_UI_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
11 #include "content/public/browser/web_ui_controller.h" 11 #include "content/public/browser/web_ui_controller.h"
12 12
13 // A custom WebUI that defines datasource for mobile setup registration page 13 // A custom WebUI that defines datasource for mobile setup registration page
14 // that is used in Chrome OS activate modem and perform plan subscription tasks. 14 // that is used in Chrome OS activate modem and perform plan subscription tasks.
15 class MobileSetupUI : public content::WebUIController, 15 class MobileSetupUI : public content::WebUIController,
16 public content::WebContentsObserver, 16 public content::WebContentsObserver,
17 public base::SupportsWeakPtr<MobileSetupUI> { 17 public base::SupportsWeakPtr<MobileSetupUI> {
18 public: 18 public:
19 explicit MobileSetupUI(content::WebUI* web_ui); 19 explicit MobileSetupUI(content::WebUI* web_ui);
20 20
21 private: 21 private:
22 // content::WebContentsObserver overrides. 22 // content::WebContentsObserver overrides.
23 void DidCommitProvisionalLoadForFrame( 23 void DidFinishNavigation(
24 content::RenderFrameHost* render_frame_host, 24 content::NavigationHandle* navigation_handle) override;
25 const GURL& url,
26 ui::PageTransition transition_type) override;
27 void DidFailProvisionalLoad(content::RenderFrameHost* render_frame_host,
28 const GURL& validated_url,
29 int error_code,
30 const base::string16& error_description,
31 bool was_ignored_by_handler) override;
32 25
33 DISALLOW_COPY_AND_ASSIGN(MobileSetupUI); 26 DISALLOW_COPY_AND_ASSIGN(MobileSetupUI);
34 }; 27 };
35 28
36 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_MOBILE_SETUP_UI_H_ 29 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_MOBILE_SETUP_UI_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698