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

Side by Side Diff: src/service.h

Issue 3797006: cashew: support additional usage API error result strings (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git
Patch Set: Created 10 years, 2 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
« no previous file with comments | « no previous file | src/service.cc » ('j') | src/service.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/service.cc » ('j') | src/service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698