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