Chromium Code Reviews| Index: chrome/browser/omaha_query_params/chrome_omaha_query_params_delegate.h |
| diff --git a/chrome/browser/omaha_query_params/chrome_omaha_query_params_delegate.h b/chrome/browser/omaha_query_params/chrome_omaha_query_params_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ffdc3d2ca578e4ab9e9f84c3b1e41510e83f612d |
| --- /dev/null |
| +++ b/chrome/browser/omaha_query_params/chrome_omaha_query_params_delegate.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_OMAHA_QUERY_PARAMS_CHROME_OMAHA_QUERY_PARAMS_DELEGATE_H_ |
| +#define CHROME_BROWSER_OMAHA_QUERY_PARAMS_CHROME_OMAHA_QUERY_PARAMS_DELEGATE_H_ |
| + |
| +#include "components/omaha_query_params/omaha_query_params.h" |
| + |
| +class ChromeOmahaQueryParamsDelegate : public OmahaQueryParamsDelegate { |
| + public: |
| + ChromeOmahaQueryParamsDelegate(); |
| + virtual ~ChromeOmahaQueryParamsDelegate(); |
| + |
| + // Gets the LazyInstance for ChromeOmahaQueryParamsDelegate. |
| + static ChromeOmahaQueryParamsDelegate* GetInstance(); |
| + |
| + // OmahaQueryParamsDelegate: |
| + virtual std::string GetExtraParams() OVERRIDE; |
| + |
| + // Returns the value we use for the "updaterchannel=" and "prodchannel=" |
| + // parameters. Possible return values include: "canary", "dev", "beta", and |
| + // "stable". |
| + static const char* GetChannelString(); |
| + |
| + // Returns the language for the present locale. Possible return values are |
| + // standard tags for languages, such as "en", "en-US", "de", "fr", "af", etc. |
| + static const char* GetLang(); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ChromeOmahaQueryParamsDelegate); |
|
jochen (gone - plz use gerrit)
2014/06/24 08:52:31
should be private
|
| +}; |
| + |
| +#endif // CHROME_BROWSER_OMAHA_QUERY_PARAMS_CHROME_OMAHA_QUERY_PARAMS_DELEGATE_H_ |