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

Side by Side Diff: components/update_client/update_response.h

Issue 1861383004: Add module for counting date-last-roll-call and persisting those counts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another test fix. Created 4 years, 8 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
« no previous file with comments | « components/update_client/update_engine.cc ('k') | components/update_client/update_response.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium 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 COMPONENTS_UPDATE_CLIENT_UPDATE_RESPONSE_H_ 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_RESPONSE_H_
6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_RESPONSE_H_ 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_RESPONSE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 }; 102 };
103 103
104 static const int kNoDaystart = -1; 104 static const int kNoDaystart = -1;
105 struct Results { 105 struct Results {
106 Results(); 106 Results();
107 Results(const Results& other); 107 Results(const Results& other);
108 ~Results(); 108 ~Results();
109 109
110 // This will be >= 0, or kNoDaystart if the <daystart> tag was not present. 110 // This will be >= 0, or kNoDaystart if the <daystart> tag was not present.
111 int daystart_elapsed_seconds; 111 int daystart_elapsed_seconds;
112 // This will be >= 0, or kNoDaystart if the <daystart> tag was not present.
113 int daystart_elapsed_days;
112 std::vector<Result> list; 114 std::vector<Result> list;
113 }; 115 };
114 116
115 UpdateResponse(); 117 UpdateResponse();
116 ~UpdateResponse(); 118 ~UpdateResponse();
117 119
118 // Parses an update response xml string into Result data. Returns a bool 120 // Parses an update response xml string into Result data. Returns a bool
119 // indicating success or failure. On success, the results are available by 121 // indicating success or failure. On success, the results are available by
120 // calling results(). The details for any failures are available by calling 122 // calling results(). The details for any failures are available by calling
121 // errors(). 123 // errors().
122 bool Parse(const std::string& manifest_xml); 124 bool Parse(const std::string& manifest_xml);
123 125
124 const Results& results() const { return results_; } 126 const Results& results() const { return results_; }
125 const std::string& errors() const { return errors_; } 127 const std::string& errors() const { return errors_; }
126 128
127 private: 129 private:
128 Results results_; 130 Results results_;
129 std::string errors_; 131 std::string errors_;
130 132
131 // Adds parse error details to |errors_| string. 133 // Adds parse error details to |errors_| string.
132 void ParseError(const char* details, ...); 134 void ParseError(const char* details, ...);
133 135
134 DISALLOW_COPY_AND_ASSIGN(UpdateResponse); 136 DISALLOW_COPY_AND_ASSIGN(UpdateResponse);
135 }; 137 };
136 138
137 } // namespace update_client 139 } // namespace update_client
138 140
139 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_RESPONSE_H_ 141 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_RESPONSE_H_
OLDNEW
« no previous file with comments | « components/update_client/update_engine.cc ('k') | components/update_client/update_response.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698