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

Unified Diff: chrome/browser/omaha_query_params/chrome_omaha_query_params_delegate.h

Issue 333353005: Move OmahaQueryParams to a component and add a delegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
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..26921c291f7bcacb2b3bf677ce92720bb14d2efe
--- /dev/null
+++ b/chrome/browser/omaha_query_params/chrome_omaha_query_params_delegate.h
@@ -0,0 +1,35 @@
+// 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_delegate.h"
+
+class ChromeOmahaQueryParamsDelegate
+ : public omaha_query_params::OmahaQueryParamsDelegate {
+ public:
+ ChromeOmahaQueryParamsDelegate();
+ virtual ~ChromeOmahaQueryParamsDelegate();
+
+ // Gets the LazyInstance for ChromeOmahaQueryParamsDelegate.
+ static ChromeOmahaQueryParamsDelegate* GetInstance();
+
+ // omaha_query_params::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();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ChromeOmahaQueryParamsDelegate);
+};
+
+#endif // CHROME_BROWSER_OMAHA_QUERY_PARAMS_CHROME_OMAHA_QUERY_PARAMS_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698