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

Unified Diff: chromeos/network/network_state.h

Issue 17091006: Add additional cellular-related properties to Network|DeviceState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nl cleanup Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/network_state.h
diff --git a/chromeos/network/network_state.h b/chromeos/network/network_state.h
index e87cba6bf020de743bd684e1ea84659a0eb9cd43..4ce67319b3b2672f25bd3898ef712488a9eb2b26 100644
--- a/chromeos/network/network_state.h
+++ b/chromeos/network/network_state.h
@@ -67,6 +67,10 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState {
return activate_over_non_cellular_networks_;
}
bool cellular_out_of_credits() const { return cellular_out_of_credits_; }
+ const std::string& usage_url() const { return usage_url_; }
+ const std::string& payment_url() const { return payment_url_; }
+ const std::string& post_method() const { return post_method_; }
+ const std::string& post_data() const { return post_data_; }
stevenjb 2013/06/21 01:15:11 Ugh, do we really need instant access to all of th
gauravsh 2013/06/21 01:51:09 In this particular case, yes, it is preferable to
stevenjb 2013/06/21 20:28:53 OK, fair enough.
bool IsConnectedState() const;
bool IsConnectingState() const;
@@ -130,6 +134,11 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState {
std::string roaming_;
bool activate_over_non_cellular_networks_;
bool cellular_out_of_credits_;
+ // Cellular payment portal properties.
+ std::string usage_url_;
+ std::string payment_url_;
+ std::string post_method_;
+ std::string post_data_;
DISALLOW_COPY_AND_ASSIGN(NetworkState);
};

Powered by Google App Engine
This is Rietveld 408576698