OLD | NEW |
---|---|
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_CONFIGURATOR_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ |
6 #define COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
51 virtual int UpdateDelay() const = 0; | 51 virtual int UpdateDelay() const = 0; |
52 | 52 |
53 // The URLs for the update checks. The URLs are tried in order, the first one | 53 // The URLs for the update checks. The URLs are tried in order, the first one |
54 // that succeeds wins. | 54 // that succeeds wins. |
55 virtual std::vector<GURL> UpdateUrl() const = 0; | 55 virtual std::vector<GURL> UpdateUrl() const = 0; |
56 | 56 |
57 // The URLs for pings. Returns an empty vector if and only if pings are | 57 // The URLs for pings. Returns an empty vector if and only if pings are |
58 // disabled. Similarly, these URLs have a fall back behavior too. | 58 // disabled. Similarly, these URLs have a fall back behavior too. |
59 virtual std::vector<GURL> PingUrl() const = 0; | 59 virtual std::vector<GURL> PingUrl() const = 0; |
60 | 60 |
61 // The ProdId is used as a prefix in some of the version strings which appear | |
62 // in the protocol requests. Possible values include "chrome", "chromecrx", | |
63 // "chromium", "chromiumcrx", and "unknown". | |
waffles
2016/09/15 18:14:11
(FWIW, "chromium" is not a possible value.)
| |
64 virtual std::string GetProdId() const = 0; | |
65 | |
61 // Version of the application. Used to compare the component manifests. | 66 // Version of the application. Used to compare the component manifests. |
62 virtual base::Version GetBrowserVersion() const = 0; | 67 virtual base::Version GetBrowserVersion() const = 0; |
63 | 68 |
64 // Returns the value we use for the "updaterchannel=" and "prodchannel=" | 69 // Returns the value we use for the "updaterchannel=" and "prodchannel=" |
65 // parameters. Possible return values include: "canary", "dev", "beta", and | 70 // parameters. Possible return values include: "canary", "dev", "beta", and |
66 // "stable". | 71 // "stable". |
67 virtual std::string GetChannel() const = 0; | 72 virtual std::string GetChannel() const = 0; |
68 | 73 |
69 // Returns the brand code or distribution tag that has been assigned to | 74 // Returns the brand code or distribution tag that has been assigned to |
70 // a partner. A brand code is a 4-character string used to identify | 75 // a partner. A brand code is a 4-character string used to identify |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
128 | 133 |
129 protected: | 134 protected: |
130 friend class base::RefCountedThreadSafe<Configurator>; | 135 friend class base::RefCountedThreadSafe<Configurator>; |
131 | 136 |
132 virtual ~Configurator() {} | 137 virtual ~Configurator() {} |
133 }; | 138 }; |
134 | 139 |
135 } // namespace update_client | 140 } // namespace update_client |
136 | 141 |
137 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ | 142 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ |
OLD | NEW |