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 ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_STATE_NOTIFIER_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_STATE_NOTIFIER_H_ |
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_STATE_NOTIFIER_H_ | 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_STATE_NOTIFIER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "ash/system/chromeos/network/network_tray_delegate.h" | 11 #include "ash/system/chromeos/network/network_tray_delegate.h" |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/time.h" | 14 #include "base/time/time.h" |
15 #include "chromeos/network/network_state_handler_observer.h" | 15 #include "chromeos/network/network_state_handler_observer.h" |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 class NetworkState; | 18 class NetworkState; |
19 } | 19 } |
20 | 20 |
21 namespace ash { | 21 namespace ash { |
22 | 22 |
23 // This class observes NetworkStateHandler and generates notifications | 23 // This class observes NetworkStateHandler and generates notifications |
24 // on connection failures. NOTE: The Observer for this class only triggers | 24 // on connection failures. NOTE: The Observer for this class only triggers |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 std::string cellular_network_; | 63 std::string cellular_network_; |
64 bool cellular_out_of_credits_; | 64 bool cellular_out_of_credits_; |
65 base::Time out_of_credits_notify_time_; | 65 base::Time out_of_credits_notify_time_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(NetworkStateNotifier); | 67 DISALLOW_COPY_AND_ASSIGN(NetworkStateNotifier); |
68 }; | 68 }; |
69 | 69 |
70 } // namespace ash | 70 } // namespace ash |
71 | 71 |
72 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_STATE_NOTIFIER_H_ | 72 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_STATE_NOTIFIER_H_ |
OLD | NEW |