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

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: address stevenjb comments 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
« no previous file with comments | « chromeos/network/device_state.cc ('k') | chromeos/network/network_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_state.h
diff --git a/chromeos/network/network_state.h b/chromeos/network/network_state.h
index e87cba6bf020de743bd684e1ea84659a0eb9cd43..0bda1cb73a46aab4e0beede913dd91c2cacfc753 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_; }
bool IsConnectedState() const;
bool IsConnectingState() const;
@@ -97,6 +101,8 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState {
dns_servers_ = dns_servers;
}
+ // TODO(gauravsh): Audit the list of properties that we are caching. We should
+ // only be doing this for commonly accessed properties. crbug.com/252553
// Common Network Service properties
std::string security_;
std::string device_path_;
@@ -130,6 +136,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);
};
« no previous file with comments | « chromeos/network/device_state.cc ('k') | chromeos/network/network_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698