Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / update_client / chrome_update_query_params_delegate.h
blobb77e5c5c314035d9754fe3ee5492c34187708620
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UPDATE_CLIENT_CHROME_UPDATE_QUERY_PARAMS_DELEGATE_H_
6 #define CHROME_BROWSER_UPDATE_CLIENT_CHROME_UPDATE_QUERY_PARAMS_DELEGATE_H_
8 #include <string>
10 #include "components/update_client/update_query_params_delegate.h"
12 class ChromeUpdateQueryParamsDelegate
13 : public update_client::UpdateQueryParamsDelegate {
14 public:
15 ChromeUpdateQueryParamsDelegate();
16 ~ChromeUpdateQueryParamsDelegate() override;
18 // Gets the LazyInstance for ChromeUpdateQueryParamsDelegate.
19 static ChromeUpdateQueryParamsDelegate* GetInstance();
21 // update_client::UpdateQueryParamsDelegate:
22 std::string GetExtraParams() override;
24 // Returns the language for the present locale. Possible return values are
25 // standard tags for languages, such as "en", "en-US", "de", "fr", "af", etc.
26 static const char* GetLang();
28 private:
29 DISALLOW_COPY_AND_ASSIGN(ChromeUpdateQueryParamsDelegate);
32 #endif // CHROME_BROWSER_UPDATE_CLIENT_CHROME_UPDATE_QUERY_PARAMS_DELEGATE_H_