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

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

Issue 1823273002: Send the value of google_brand::GetBrand in component update checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor unit test improvement. Created 4 years, 9 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 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual std::vector<GURL> PingUrl() const = 0; 58 virtual std::vector<GURL> PingUrl() const = 0;
59 59
60 // Version of the application. Used to compare the component manifests. 60 // Version of the application. Used to compare the component manifests.
61 virtual base::Version GetBrowserVersion() const = 0; 61 virtual base::Version GetBrowserVersion() const = 0;
62 62
63 // Returns the value we use for the "updaterchannel=" and "prodchannel=" 63 // Returns the value we use for the "updaterchannel=" and "prodchannel="
64 // parameters. Possible return values include: "canary", "dev", "beta", and 64 // parameters. Possible return values include: "canary", "dev", "beta", and
65 // "stable". 65 // "stable".
66 virtual std::string GetChannel() const = 0; 66 virtual std::string GetChannel() const = 0;
67 67
68 // Returns the brand code or distribution tag that has been assigned to
69 // a partner. A brand code is a 4-character string used to identify
70 // installations that took place as a result of partner deals or website
71 // promotions.
72 virtual std::string GetBrand() const = 0;
73
68 // Returns the language for the present locale. Possible return values are 74 // Returns the language for the present locale. Possible return values are
69 // standard tags for languages, such as "en", "en-US", "de", "fr", "af", etc. 75 // standard tags for languages, such as "en", "en-US", "de", "fr", "af", etc.
70 virtual std::string GetLang() const = 0; 76 virtual std::string GetLang() const = 0;
71 77
72 // Returns the OS's long name like "Windows", "Mac OS X", etc. 78 // Returns the OS's long name like "Windows", "Mac OS X", etc.
73 virtual std::string GetOSLongName() const = 0; 79 virtual std::string GetOSLongName() const = 0;
74 80
75 // Parameters added to each url request. It can be empty if none are needed. 81 // Parameters added to each url request. It can be empty if none are needed.
76 // The return string must be safe for insertion as an attribute in an 82 // The return string must be safe for insertion as an attribute in an
77 // XML element. 83 // XML element.
(...skipping 29 matching lines...) Expand all
107 113
108 protected: 114 protected:
109 friend class base::RefCountedThreadSafe<Configurator>; 115 friend class base::RefCountedThreadSafe<Configurator>;
110 116
111 virtual ~Configurator() {} 117 virtual ~Configurator() {}
112 }; 118 };
113 119
114 } // namespace update_client 120 } // namespace update_client
115 121
116 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ 122 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/chrome_update_client_config.cc ('k') | components/update_client/test_configurator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698