Index: chrome/browser/search_engines/search_terms_data_android.h |
diff --git a/chrome/browser/search_engines/search_terms_data_android.h b/chrome/browser/search_engines/search_terms_data_android.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..551bc7d6ff0175f0b81a99aef9c36ae396ee7acf |
--- /dev/null |
+++ b/chrome/browser/search_engines/search_terms_data_android.h |
@@ -0,0 +1,27 @@ |
+// Copyright (c) 2012 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_SEARCH_ENGINES_SEARCH_TERMS_DATA_ANDROID_H_ |
+#define CHROME_BROWSER_SEARCH_ENGINES_SEARCH_TERMS_DATA_ANDROID_H_ |
+ |
+#include <string> |
+ |
+#include "base/lazy_instance.h" |
+#include "base/string16.h" |
+ |
+// Additional data needed by TemplateURLRef::ReplaceSearchTerms on Android. |
+class SearchTermsDataAndroid { |
+ public: |
+ static string16 GetRlzParameterValue(); |
+ static void SetRlzParameterValue(const string16& rlz); |
+ |
+ static std::string GetSearchClient(); |
+ static void SetSearchClient(const std::string& client); |
+ |
+ private: |
+ static base::LazyInstance<string16>::Leaky rlz_parameter_value_; |
+ static base::LazyInstance<std::string>::Leaky search_client_; |
+}; |
+ |
+#endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_TERMS_DATA_ANDROID_H_ |