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

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

Issue 383503002: OmahaQueryParams: Tiny comment update (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | no next file » | 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_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_H_ 5 #ifndef COMPONENTS_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_H_
6 #define COMPONENTS_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_H_ 6 #define COMPONENTS_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 namespace omaha_query_params { 12 namespace omaha_query_params {
13 13
14 class OmahaQueryParamsDelegate; 14 class OmahaQueryParamsDelegate;
15 15
16 // Generates a string of URL query parameters to be used when getting 16 // Generates a string of URL query parameters to be used when getting
17 // component and extension updates. These parameters generally remain 17 // component and extension updates. These parameters generally remain
18 // fixed for a particular build. Embedders can use the delegate to 18 // fixed for a particular build. Embedders can use the delegate to
19 // define different implementations. This should be used only in the 19 // define different implementations. This should be used only in the
20 // browser process. 20 // browser process.
21 class OmahaQueryParams { 21 class OmahaQueryParams {
22 public: 22 public:
23 enum ProdId { 23 enum ProdId {
24 CHROME = 0, 24 CHROME = 0,
25 CRX, 25 CRX,
26 }; 26 };
27 27
28 // Generates a string of URL query parameters for Omaha. Includes the 28 // Generates a string of URL query parameters for Omaha. Includes the
29 // following fields: os, arch, prod, prodchannel, prodversion, lang. 29 // following fields: "os", "arch", "nacl_arch", "prod", "prodchannel",
30 // "prodversion", and "lang"
30 static std::string Get(ProdId prod); 31 static std::string Get(ProdId prod);
31 32
32 // Returns the value we use for the "prod=" parameter. Possible return values 33 // Returns the value we use for the "prod=" parameter. Possible return values
33 // include "chrome", "chromecrx", "chromiumcrx", and "unknown". 34 // include "chrome", "chromecrx", "chromiumcrx", and "unknown".
34 static const char* GetProdIdString(ProdId prod); 35 static const char* GetProdIdString(ProdId prod);
35 36
36 // Returns the value we use for the "os=" parameter. Possible return values 37 // Returns the value we use for the "os=" parameter. Possible return values
37 // include: "mac", "win", "android", "cros", "linux", and "openbsd". 38 // include: "mac", "win", "android", "cros", "linux", and "openbsd".
38 static const char* GetOS(); 39 static const char* GetOS();
39 40
(...skipping 10 matching lines...) Expand all
50 // Use this delegate. 51 // Use this delegate.
51 static void SetDelegate(OmahaQueryParamsDelegate* delegate); 52 static void SetDelegate(OmahaQueryParamsDelegate* delegate);
52 53
53 private: 54 private:
54 DISALLOW_IMPLICIT_CONSTRUCTORS(OmahaQueryParams); 55 DISALLOW_IMPLICIT_CONSTRUCTORS(OmahaQueryParams);
55 }; 56 };
56 57
57 } // namespace omaha_query_params 58 } // namespace omaha_query_params
58 59
59 #endif // COMPONENTS_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_H_ 60 #endif // COMPONENTS_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698