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 CHROME_BROWSER_OMAHA_QUERY_PARAMS_CHROME_OMAHA_QUERY_PARAMS_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_OMAHA_QUERY_PARAMS_CHROME_OMAHA_QUERY_PARAMS_DELEGATE_H_ |
6 #define CHROME_BROWSER_OMAHA_QUERY_PARAMS_CHROME_OMAHA_QUERY_PARAMS_DELEGATE_H_ | 6 #define CHROME_BROWSER_OMAHA_QUERY_PARAMS_CHROME_OMAHA_QUERY_PARAMS_DELEGATE_H_ |
7 | 7 |
8 #include "components/omaha_query_params/omaha_query_params_delegate.h" | 8 #include "components/omaha_query_params/omaha_query_params_delegate.h" |
9 | 9 |
10 class ChromeOmahaQueryParamsDelegate | 10 class ChromeOmahaQueryParamsDelegate |
11 : public omaha_query_params::OmahaQueryParamsDelegate { | 11 : public omaha_query_params::OmahaQueryParamsDelegate { |
12 public: | 12 public: |
13 ChromeOmahaQueryParamsDelegate(); | 13 ChromeOmahaQueryParamsDelegate(); |
14 virtual ~ChromeOmahaQueryParamsDelegate(); | 14 ~ChromeOmahaQueryParamsDelegate() override; |
15 | 15 |
16 // Gets the LazyInstance for ChromeOmahaQueryParamsDelegate. | 16 // Gets the LazyInstance for ChromeOmahaQueryParamsDelegate. |
17 static ChromeOmahaQueryParamsDelegate* GetInstance(); | 17 static ChromeOmahaQueryParamsDelegate* GetInstance(); |
18 | 18 |
19 // omaha_query_params::OmahaQueryParamsDelegate: | 19 // omaha_query_params::OmahaQueryParamsDelegate: |
20 virtual std::string GetExtraParams() override; | 20 std::string GetExtraParams() override; |
21 | 21 |
22 // Returns the value we use for the "updaterchannel=" and "prodchannel=" | 22 // Returns the value we use for the "updaterchannel=" and "prodchannel=" |
23 // parameters. Possible return values include: "canary", "dev", "beta", and | 23 // parameters. Possible return values include: "canary", "dev", "beta", and |
24 // "stable". | 24 // "stable". |
25 static const char* GetChannelString(); | 25 static const char* GetChannelString(); |
26 | 26 |
27 // Returns the language for the present locale. Possible return values are | 27 // Returns the language for the present locale. Possible return values are |
28 // standard tags for languages, such as "en", "en-US", "de", "fr", "af", etc. | 28 // standard tags for languages, such as "en", "en-US", "de", "fr", "af", etc. |
29 static const char* GetLang(); | 29 static const char* GetLang(); |
30 | 30 |
31 private: | 31 private: |
32 DISALLOW_COPY_AND_ASSIGN(ChromeOmahaQueryParamsDelegate); | 32 DISALLOW_COPY_AND_ASSIGN(ChromeOmahaQueryParamsDelegate); |
33 }; | 33 }; |
34 | 34 |
35 #endif // CHROME_BROWSER_OMAHA_QUERY_PARAMS_CHROME_OMAHA_QUERY_PARAMS_DELEGATE_
H_ | 35 #endif // CHROME_BROWSER_OMAHA_QUERY_PARAMS_CHROME_OMAHA_QUERY_PARAMS_DELEGATE_
H_ |
OLD | NEW |