| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS 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 SRC_SERVICE_H_ | 5 #ifndef SRC_SERVICE_H_ |
| 6 #define SRC_SERVICE_H_ | 6 #define SRC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <glib.h> | 8 #include <glib.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 bool CreateUpdateTimer(); | 183 bool CreateUpdateTimer(); |
| 184 | 184 |
| 185 // stop and destroy the update timer if it exists | 185 // stop and destroy the update timer if it exists |
| 186 void DestroyUpdateTimer(); | 186 void DestroyUpdateTimer(); |
| 187 | 187 |
| 188 // delete carrier usage API proxy and policy if they exist | 188 // delete carrier usage API proxy and policy if they exist |
| 189 // this also destroys the update timer and cancels pending requests | 189 // this also destroys the update timer and cancels pending requests |
| 190 // NOTE: this does not delete usage url (it's considered service state) | 190 // NOTE: this does not delete usage url (it's considered service state) |
| 191 void DeleteCarrierState(); | 191 void DeleteCarrierState(); |
| 192 | 192 |
| 193 // does |status| contain a valid usage API status result string? |
| 194 bool IsValidCrosUsageStatus(const std::string& status) const; |
| 195 |
| 196 // usage API request returned an error result |
| 197 void OnCrosUsageErrorResult(const std::string& status); |
| 198 |
| 193 DISALLOW_COPY_AND_ASSIGN(Service); | 199 DISALLOW_COPY_AND_ASSIGN(Service); |
| 194 }; | 200 }; |
| 195 | 201 |
| 196 } // namespace cashew | 202 } // namespace cashew |
| 197 | 203 |
| 198 #endif // SRC_SERVICE_H_ | 204 #endif // SRC_SERVICE_H_ |
| OLD | NEW |