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