| 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_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "base/timer/timer.h" | 15 #include "base/timer/timer.h" |
| 16 #include "chrome/browser/chromeos/login/screens/update_screen_actor.h" | 16 #include "chrome/browser/chromeos/login/screens/update_screen_actor.h" |
| 17 #include "chrome/browser/chromeos/login/screens/wizard_screen.h" | 17 #include "chrome/browser/chromeos/login/screens/wizard_screen.h" |
| 18 #include "chromeos/dbus/update_engine_client.h" | 18 #include "chromeos/dbus/update_engine_client.h" |
| 19 #include "chromeos/network/portal_detector/network_portal_detector.h" | 19 #include "chromeos/network/portal_detector/network_portal_detector.h" |
| 20 | 20 |
| 21 namespace chromeos { | 21 namespace chromeos { |
| 22 | 22 |
| 23 class ErrorScreen; | 23 class ErrorScreen; |
| 24 class ErrorScreensHistogramHelper; | |
| 25 class NetworkState; | 24 class NetworkState; |
| 26 class ScreenManager; | 25 class ScreenManager; |
| 27 class ScreenObserver; | 26 class ScreenObserver; |
| 28 | 27 |
| 29 // Controller for the update screen. It does not depend on the specific | 28 // Controller for the update screen. It does not depend on the specific |
| 30 // implementation of the screen showing (Views of WebUI based), the dependency | 29 // implementation of the screen showing (Views of WebUI based), the dependency |
| 31 // is moved to the UpdateScreenActor instead. | 30 // is moved to the UpdateScreenActor instead. |
| 32 class UpdateScreen: public UpdateEngineClient::Observer, | 31 class UpdateScreen: public UpdateEngineClient::Observer, |
| 33 public UpdateScreenActor::Delegate, | 32 public UpdateScreenActor::Delegate, |
| 34 public WizardScreen, | 33 public WizardScreen, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 double download_average_speed_; | 157 double download_average_speed_; |
| 159 | 158 |
| 160 // True if there was no notification from NetworkPortalDetector | 159 // True if there was no notification from NetworkPortalDetector |
| 161 // about state for the default network. | 160 // about state for the default network. |
| 162 bool is_first_detection_notification_; | 161 bool is_first_detection_notification_; |
| 163 | 162 |
| 164 // True if there was no notification about captive portal state for | 163 // True if there was no notification about captive portal state for |
| 165 // the default network. | 164 // the default network. |
| 166 bool is_first_portal_notification_; | 165 bool is_first_portal_notification_; |
| 167 | 166 |
| 168 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; | |
| 169 | |
| 170 base::WeakPtrFactory<UpdateScreen> weak_factory_; | 167 base::WeakPtrFactory<UpdateScreen> weak_factory_; |
| 171 | 168 |
| 172 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); | 169 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); |
| 173 }; | 170 }; |
| 174 | 171 |
| 175 } // namespace chromeos | 172 } // namespace chromeos |
| 176 | 173 |
| 177 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ | 174 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ |
| OLD | NEW |