OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CROS_NETWORK_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 base::Time plan_end_time; | 211 base::Time plan_end_time; |
212 int64 plan_data_bytes; | 212 int64 plan_data_bytes; |
213 int64 data_bytes_used; | 213 int64 data_bytes_used; |
214 }; | 214 }; |
215 | 215 |
216 typedef ScopedVector<CellularDataPlan> CellularDataPlanVector; | 216 typedef ScopedVector<CellularDataPlan> CellularDataPlanVector; |
217 | 217 |
218 class CellularNetwork : public WirelessNetwork { | 218 class CellularNetwork : public WirelessNetwork { |
219 public: | 219 public: |
220 enum DataLeft { | 220 enum DataLeft { |
| 221 DATA_UNKNOWN, |
221 DATA_NORMAL, | 222 DATA_NORMAL, |
222 DATA_LOW, | 223 DATA_LOW, |
223 DATA_VERY_LOW, | 224 DATA_VERY_LOW, |
224 DATA_NONE | 225 DATA_NONE |
225 }; | 226 }; |
226 | 227 |
227 CellularNetwork(); | 228 CellularNetwork(); |
228 explicit CellularNetwork(const CellularNetwork& network); | 229 explicit CellularNetwork(const CellularNetwork& network); |
229 explicit CellularNetwork(const ServiceInfo* service); | 230 explicit CellularNetwork(const ServiceInfo* service); |
230 virtual ~CellularNetwork(); | 231 virtual ~CellularNetwork(); |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 virtual std::string GetHtmlInfo(int refresh) = 0; | 635 virtual std::string GetHtmlInfo(int refresh) = 0; |
635 | 636 |
636 // Factory function, creates a new instance and returns ownership. | 637 // Factory function, creates a new instance and returns ownership. |
637 // For normal usage, access the singleton via CrosLibrary::Get(). | 638 // For normal usage, access the singleton via CrosLibrary::Get(). |
638 static NetworkLibrary* GetImpl(bool stub); | 639 static NetworkLibrary* GetImpl(bool stub); |
639 }; | 640 }; |
640 | 641 |
641 } // namespace chromeos | 642 } // namespace chromeos |
642 | 643 |
643 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 644 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
OLD | NEW |