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

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

Issue 9690021: chromeos: Refactor some network related code in preparation for the uber tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 | « no previous file | 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) 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_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 <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 // Sets the APN to use in establishing data connections. Only 1215 // Sets the APN to use in establishing data connections. Only
1216 // the fields of the APN that are needed for making connections 1216 // the fields of the APN that are needed for making connections
1217 // are passed to flimflam. The name, localized_name, and language 1217 // are passed to flimflam. The name, localized_name, and language
1218 // fields are ignored. 1218 // fields are ignored.
1219 void SetApn(const CellularApn& apn); 1219 void SetApn(const CellularApn& apn);
1220 1220
1221 // Returns true if network supports activation. 1221 // Returns true if network supports activation.
1222 // Current implementation returns same as SupportsDataPlan(). 1222 // Current implementation returns same as SupportsDataPlan().
1223 bool SupportsActivation() const; 1223 bool SupportsActivation() const;
1224 1224
1225 // Returns whether the network needs to be activated.
1226 bool NeedsActivation() const;
1227
1225 // Returns true if one of the usage_url_ / payment_url_ (or both) is defined. 1228 // Returns true if one of the usage_url_ / payment_url_ (or both) is defined.
1226 bool SupportsDataPlan() const; 1229 bool SupportsDataPlan() const;
1227 1230
1228 // Return a URL for account info page. 1231 // Return a URL for account info page.
1229 GURL GetAccountInfoUrl() const; 1232 GURL GetAccountInfoUrl() const;
1230 // Return a string representation of network technology. 1233 // Return a string representation of network technology.
1231 std::string GetNetworkTechnologyString() const; 1234 std::string GetNetworkTechnologyString() const;
1232 // Return a string representation of activation state. 1235 // Return a string representation of activation state.
1233 std::string GetActivationStateString() const; 1236 std::string GetActivationStateString() const;
1234 // Return a string representation of roaming state. 1237 // Return a string representation of roaming state.
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
1971 const std::string& service_path) = 0; 1974 const std::string& service_path) = 0;
1972 1975
1973 // Factory function, creates a new instance and returns ownership. 1976 // Factory function, creates a new instance and returns ownership.
1974 // For normal usage, access the singleton via CrosLibrary::Get(). 1977 // For normal usage, access the singleton via CrosLibrary::Get().
1975 static NetworkLibrary* GetImpl(bool stub); 1978 static NetworkLibrary* GetImpl(bool stub);
1976 }; 1979 };
1977 1980
1978 } // namespace chromeos 1981 } // namespace chromeos
1979 1982
1980 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 1983 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/network_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698