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

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

Issue 7313005: [cros] Hide chrome://mobilesetup content on non-supported networks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 } 620 }
621 const std::string& operator_name() const { return operator_name_; } 621 const std::string& operator_name() const { return operator_name_; }
622 const std::string& operator_code() const { return operator_code_; } 622 const std::string& operator_code() const { return operator_code_; }
623 const std::string& operator_country() const { return operator_country_; } 623 const std::string& operator_country() const { return operator_country_; }
624 const std::string& payment_url() const { return payment_url_; } 624 const std::string& payment_url() const { return payment_url_; }
625 const std::string& usage_url() const { return usage_url_; } 625 const std::string& usage_url() const { return usage_url_; }
626 DataLeft data_left() const { return data_left_; } 626 DataLeft data_left() const { return data_left_; }
627 const Apn& apn() const { return apn_; } 627 const Apn& apn() const { return apn_; }
628 const Apn& last_good_apn() const { return last_good_apn_; } 628 const Apn& last_good_apn() const { return last_good_apn_; }
629 void SetApn(const Apn& apn); 629 void SetApn(const Apn& apn);
630
631 // Returns true if network supports activation.
632 // Current implementation returns same as SupportsDataPlan().
633 bool SupportsActivation() const;
634
635 // Returns true if one of the usage_url_ /payment_url_ (or both) is defined.
630 bool SupportsDataPlan() const; 636 bool SupportsDataPlan() const;
631 637
632 // Misc. 638 // Misc.
633 bool is_gsm() const { 639 bool is_gsm() const {
634 return network_technology_ != NETWORK_TECHNOLOGY_EVDO && 640 return network_technology_ != NETWORK_TECHNOLOGY_EVDO &&
635 network_technology_ != NETWORK_TECHNOLOGY_1XRTT && 641 network_technology_ != NETWORK_TECHNOLOGY_1XRTT &&
636 network_technology_ != NETWORK_TECHNOLOGY_UNKNOWN; 642 network_technology_ != NETWORK_TECHNOLOGY_UNKNOWN;
637 } 643 }
638 644
639 // Return a string representation of network technology. 645 // Return a string representation of network technology.
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 virtual void SetIPConfig(const NetworkIPConfig& ipconfig) = 0; 1234 virtual void SetIPConfig(const NetworkIPConfig& ipconfig) = 0;
1229 1235
1230 // Factory function, creates a new instance and returns ownership. 1236 // Factory function, creates a new instance and returns ownership.
1231 // For normal usage, access the singleton via CrosLibrary::Get(). 1237 // For normal usage, access the singleton via CrosLibrary::Get().
1232 static NetworkLibrary* GetImpl(bool stub); 1238 static NetworkLibrary* GetImpl(bool stub);
1233 }; 1239 };
1234 1240
1235 } // namespace chromeos 1241 } // namespace chromeos
1236 1242
1237 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 1243 #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') | chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698