| 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_LOGIN_RESET_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "chrome/browser/chromeos/login/help_app_launcher.h" | 11 #include "chrome/browser/chromeos/login/help_app_launcher.h" |
| 12 #include "chrome/browser/chromeos/login/screens/reset_screen_actor.h" | 12 #include "chrome/browser/chromeos/login/screens/reset_screen_actor.h" |
| 13 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 13 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
| 14 #include "chromeos/dbus/update_engine_client.h" | 14 #include "chromeos/dbus/update_engine_client.h" |
| 15 #include "content/public/browser/web_ui.h" | 15 #include "content/public/browser/web_ui.h" |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 | 18 |
| 19 // WebUI implementation of ResetScreenActor. | 19 // WebUI implementation of ResetScreenActor. |
| 20 class ResetScreenHandler : public ResetScreenActor, | 20 class ResetScreenHandler : public ResetScreenActor, |
| 21 public BaseScreenHandler, | 21 public BaseScreenHandler, |
| 22 public UpdateEngineClient::Observer { | 22 public UpdateEngineClient::Observer { |
| 23 public: | 23 public: |
| 24 ResetScreenHandler(); | 24 explicit ResetScreenHandler(); |
| 25 virtual ~ResetScreenHandler(); | 25 virtual ~ResetScreenHandler(); |
| 26 | 26 |
| 27 // ResetScreenActor implementation: | 27 // ResetScreenActor implementation: |
| 28 virtual void PrepareToShow() OVERRIDE; | 28 virtual void PrepareToShow() OVERRIDE; |
| 29 virtual void Show() OVERRIDE; | 29 virtual void Show() OVERRIDE; |
| 30 virtual void Hide() OVERRIDE; | 30 virtual void Hide() OVERRIDE; |
| 31 virtual void SetDelegate(Delegate* delegate) OVERRIDE; | 31 virtual void SetDelegate(Delegate* delegate) OVERRIDE; |
| 32 | 32 |
| 33 // BaseScreenHandler implementation: | 33 // BaseScreenHandler implementation: |
| 34 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; | 34 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 bool preparing_for_rollback_; | 77 bool preparing_for_rollback_; |
| 78 | 78 |
| 79 base::WeakPtrFactory<ResetScreenHandler> weak_ptr_factory_; | 79 base::WeakPtrFactory<ResetScreenHandler> weak_ptr_factory_; |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(ResetScreenHandler); | 81 DISALLOW_COPY_AND_ASSIGN(ResetScreenHandler); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace chromeos | 84 } // namespace chromeos |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ | 86 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ |
| OLD | NEW |