Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 bool AllowCaching() const override; | |
|
stevenjb
2017/03/22 20:50:29
override comment e.g. line 24.
The comment format
Takashi Toyoshima
2017/03/23 05:54:39
Acknowledged.
| |
| 22 | |
| 21 private: | 23 private: |
| 22 // content::WebContentsObserver overrides. | 24 // content::WebContentsObserver overrides. |
| 23 void DidFinishNavigation( | 25 void DidFinishNavigation( |
| 24 content::NavigationHandle* navigation_handle) override; | 26 content::NavigationHandle* navigation_handle) override; |
| 25 | 27 |
| 26 DISALLOW_COPY_AND_ASSIGN(MobileSetupUI); | 28 DISALLOW_COPY_AND_ASSIGN(MobileSetupUI); |
| 27 }; | 29 }; |
| 28 | 30 |
| 29 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_MOBILE_SETUP_UI_H_ | 31 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_MOBILE_SETUP_UI_H_ |
| OLD | NEW |