Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: chrome/browser/chromeos/cros/network_library.h

Issue 6370010: Fix bug where when the 3G data plan is unknown, we show a green 3G badge. We ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/chromeos/cros/network_library.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/chromeos/cros/network_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698