Chromium Code Reviews| Index: src/service.h |
| diff --git a/src/service.h b/src/service.h |
| index dfe746911c491454f071876669d7aa3fbfc90901..4a834f9c5a2d41a38783d7ace476ed21b5c68164 100644 |
| --- a/src/service.h |
| +++ b/src/service.h |
| @@ -83,6 +83,9 @@ class Service : public org::chromium::flimflam::Service_proxy, |
| // do we think that we're the default service at this time? |
| virtual bool IsDefaultService() const; |
| + // do we think that we're in the restricted pool at this time? |
| + virtual bool RestrictedPool() const; |
| + |
| // Flimflam Service D-Bus Proxy methods |
| // receive incoming PropertyChanged D-Bus signal from Flimflam service |
| @@ -94,6 +97,9 @@ class Service : public org::chromium::flimflam::Service_proxy, |
| // we've received updated Cellular.Carrier info from our child Device |
| virtual void OnCarrierUpdate(const std::string& carrier); |
| + // we've received updated byte counter info from our child Device |
| + virtual void OnByteCounterUpdate(uint64 rx_bytes, uint64 tx_bytes); |
| + |
| // DataPlanProviderDelegate methods |
| // a request to our carrier usage API proxy has completed |
| @@ -179,6 +185,10 @@ class Service : public org::chromium::flimflam::Service_proxy, |
| // and our subsequent timer calls |
| bool retrying_get_properties_; |
| + // do we think that we're in the restricted pool? |
| + // we start out assuming false until we discover otherwise |
| + bool restricted_pool_; |
| + |
| // convert state string to State enum value |
| State StateFromString(const std::string& state) const; |
| @@ -194,6 +204,9 @@ class Service : public org::chromium::flimflam::Service_proxy, |
| // we've received updated Cellular.UsageUrl info from Flimflam |
| void OnUsageUrlUpdate(const std::string& usage_url); |
| + // we've received updated Cellular.RestrictedPool info from Flimflam |
|
Jason Glasgow
2010/11/19 02:22:32
This is out of date. See http://codereview.chromi
Vince Laviano
2010/11/19 02:44:58
Thanks for the heads-up. I'll revise my CL to look
|
| + void OnRestrictedPoolUpdate(bool restricted_pool); |
| + |
| // glib integration: static wrapper for GetServiceProperties |
| // takes object ptr as data and invokes object->GetServiceProperties() |
| static gboolean StaticGetServicePropertiesCallback(gpointer data); |
| @@ -270,6 +283,9 @@ class Service : public org::chromium::flimflam::Service_proxy, |
| // periodic usage API requests and adjust our behavior if necessary |
| void ReconsiderSendingUsageRequests(); |
| + // consult policy to determine if we should send an unsolicited update |
| + void MaybeEmitDataPlansUpdate(); |
| + |
| DISALLOW_COPY_AND_ASSIGN(Service); |
| }; |