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; |
24 class NetworkState; | 25 class NetworkState; |
25 class ScreenManager; | 26 class ScreenManager; |
26 class ScreenObserver; | 27 class ScreenObserver; |
27 | 28 |
28 // Controller for the update screen. It does not depend on the specific | 29 // Controller for the update screen. It does not depend on the specific |
29 // implementation of the screen showing (Views of WebUI based), the dependency | 30 // implementation of the screen showing (Views of WebUI based), the dependency |
30 // is moved to the UpdateScreenActor instead. | 31 // is moved to the UpdateScreenActor instead. |
31 class UpdateScreen: public UpdateEngineClient::Observer, | 32 class UpdateScreen: public UpdateEngineClient::Observer, |
32 public UpdateScreenActor::Delegate, | 33 public UpdateScreenActor::Delegate, |
33 public WizardScreen, | 34 public WizardScreen, |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 double download_average_speed_; | 158 double download_average_speed_; |
158 | 159 |
159 // True if there was no notification from NetworkPortalDetector | 160 // True if there was no notification from NetworkPortalDetector |
160 // about state for the default network. | 161 // about state for the default network. |
161 bool is_first_detection_notification_; | 162 bool is_first_detection_notification_; |
162 | 163 |
163 // True if there was no notification about captive portal state for | 164 // True if there was no notification about captive portal state for |
164 // the default network. | 165 // the default network. |
165 bool is_first_portal_notification_; | 166 bool is_first_portal_notification_; |
166 | 167 |
| 168 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
| 169 |
167 base::WeakPtrFactory<UpdateScreen> weak_factory_; | 170 base::WeakPtrFactory<UpdateScreen> weak_factory_; |
168 | 171 |
169 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); | 172 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); |
170 }; | 173 }; |
171 | 174 |
172 } // namespace chromeos | 175 } // namespace chromeos |
173 | 176 |
174 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ | 177 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_SCREEN_H_ |
OLD | NEW |