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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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_NORMAL, | 221 DATA_NORMAL, |
222 DATA_LOW, | 222 DATA_LOW, |
223 DATA_VERY_LOW, | 223 DATA_VERY_LOW, |
224 DATA_NONE | 224 DATA_NONE, |
225 DATA_UNKNOWN | |
zel
2011/01/24 19:19:48
I would put initial states as the first one on the
Charlie Lee
2011/01/24 19:30:13
Done.
| |
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(); |
231 // Starts device activation process. Returns false if the device state does | 232 // Starts device activation process. Returns false if the device state does |
232 // not permit activation. | 233 // not permit activation. |
233 bool StartActivation() const; | 234 bool StartActivation() const; |
234 const ActivationState activation_state() const { return activation_state_; } | 235 const ActivationState activation_state() const { return activation_state_; } |
(...skipping 399 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 |