| 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/base_screen.h" | 16 #include "chrome/browser/chromeos/login/screens/base_screen.h" |
| 17 #include "chrome/browser/chromeos/login/screens/update_screen_actor.h" | 17 #include "chrome/browser/chromeos/login/screens/update_screen_actor.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 #include "components/pairing/host_pairing_controller.h" | 20 #include "components/pairing/host_pairing_controller.h" |
| 21 | 21 |
| 22 namespace chromeos { | 22 namespace chromeos { |
| 23 | 23 |
| 24 class ErrorScreen; | 24 class ErrorScreen; |
| 25 class ErrorScreensHistogramHelper; |
| 25 class NetworkState; | 26 class NetworkState; |
| 26 class ScreenManager; | 27 class ScreenManager; |
| 27 class ScreenObserver; | 28 class ScreenObserver; |
| 28 | 29 |
| 29 // Controller for the update screen. It does not depend on the specific | 30 // Controller for the update screen. It does not depend on the specific |
| 30 // implementation of the screen showing (Views of WebUI based), the dependency | 31 // implementation of the screen showing (Views of WebUI based), the dependency |
| 31 // is moved to the UpdateScreenActor instead. | 32 // is moved to the UpdateScreenActor instead. |
| 32 class UpdateScreen : public UpdateEngineClient::Observer, | 33 class UpdateScreen : public UpdateEngineClient::Observer, |
| 33 public UpdateScreenActor::Delegate, | 34 public UpdateScreenActor::Delegate, |
| 34 public BaseScreen, | 35 public BaseScreen, |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 double download_average_speed_; | 168 double download_average_speed_; |
| 168 | 169 |
| 169 // True if there was no notification from NetworkPortalDetector | 170 // True if there was no notification from NetworkPortalDetector |
| 170 // about state for the default network. | 171 // about state for the default network. |
| 171 bool is_first_detection_notification_; | 172 bool is_first_detection_notification_; |
| 172 | 173 |
| 173 // True if there was no notification about captive portal state for | 174 // True if there was no notification about captive portal state for |
| 174 // the default network. | 175 // the default network. |
| 175 bool is_first_portal_notification_; | 176 bool is_first_portal_notification_; |
| 176 | 177 |
| 178 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
| 179 |
| 177 base::WeakPtrFactory<UpdateScreen> weak_factory_; | 180 base::WeakPtrFactory<UpdateScreen> weak_factory_; |
| 178 | 181 |
| 179 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); | 182 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); |
| 180 }; | 183 }; |
| 181 | 184 |
| 182 } // namespace chromeos | 185 } // namespace chromeos |
| 183 | 186 |
| 184 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ | 187 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ |
| OLD | NEW |