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

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

Issue 1872053002: Implement an API to allow passing an "ap" parameter to component updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CLIENT_H_ 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_
6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // SHA256 hash of the CRX's public key. 189 // SHA256 hash of the CRX's public key.
190 std::vector<uint8_t> pk_hash; 190 std::vector<uint8_t> pk_hash;
191 scoped_refptr<CrxInstaller> installer; 191 scoped_refptr<CrxInstaller> installer;
192 192
193 // The current version if the CRX is updated. Otherwise, "0" or "0.0" if 193 // The current version if the CRX is updated. Otherwise, "0" or "0.0" if
194 // the CRX is installed. 194 // the CRX is installed.
195 Version version; 195 Version version;
196 196
197 std::string fingerprint; // Optional. 197 std::string fingerprint; // Optional.
198 std::string name; // Optional. 198 std::string name; // Optional.
199 std::string ap; // Optional. Must match ^([-+_=a-zA-Z0-9]{0,256})$
waffles 2016/04/08 21:06:16 Nit: No need for ()s.
Sorin Jianu 2016/04/08 21:13:42 Done.
199 200
200 // Specifies that the CRX can be background-downloaded in some cases. 201 // Specifies that the CRX can be background-downloaded in some cases.
201 // The default for this value is |true|. 202 // The default for this value is |true|.
202 bool allows_background_download; 203 bool allows_background_download;
203 204
204 // Specifies that the update checks and pings associated with this component 205 // Specifies that the update checks and pings associated with this component
205 // require confidentiality. The default for this value is |true|. As a side 206 // require confidentiality. The default for this value is |true|. As a side
206 // note, the confidentiality of the downloads is enforced by the server, 207 // note, the confidentiality of the downloads is enforced by the server,
207 // which only returns secure download URLs in this case. 208 // which only returns secure download URLs in this case.
208 bool requires_network_encryption; 209 bool requires_network_encryption;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 virtual ~UpdateClient() {} 326 virtual ~UpdateClient() {}
326 }; 327 };
327 328
328 // Creates an instance of the update client. 329 // Creates an instance of the update client.
329 scoped_refptr<UpdateClient> UpdateClientFactory( 330 scoped_refptr<UpdateClient> UpdateClientFactory(
330 const scoped_refptr<Configurator>& config); 331 const scoped_refptr<Configurator>& config);
331 332
332 } // namespace update_client 333 } // namespace update_client
333 334
334 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_ 335 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698