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

Unified Diff: components/search_engines/search_terms_data.h

Issue 324283003: Move search_terms_data to components/search_engines (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
« no previous file with comments | « components/search_engines/DEPS ('k') | components/search_engines/search_terms_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/search_engines/search_terms_data.h
diff --git a/chrome/browser/search_engines/search_terms_data.h b/components/search_engines/search_terms_data.h
similarity index 65%
rename from chrome/browser/search_engines/search_terms_data.h
rename to components/search_engines/search_terms_data.h
index 7167374166c0c9ed74a236a05e5e80dfe6827c62..a97a9c98b258a5406e6ac1d3fa41af5654c0ccc5 100644
--- a/chrome/browser/search_engines/search_terms_data.h
+++ b/components/search_engines/search_terms_data.h
@@ -2,8 +2,8 @@
// 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_H_
-#define CHROME_BROWSER_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_
+#ifndef COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_
+#define COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_
#include <string>
@@ -11,8 +11,6 @@
#include "base/compiler_specific.h"
#include "base/strings/string16.h"
-class Profile;
-
// All data needed by TemplateURLRef::ReplaceSearchTerms which typically may
// only be accessed on the UI thread.
class SearchTermsData {
@@ -62,31 +60,4 @@ class SearchTermsData {
DISALLOW_COPY_AND_ASSIGN(SearchTermsData);
};
-// Implementation of SearchTermsData that is only usable on the UI thread.
-class UIThreadSearchTermsData : public SearchTermsData {
- public:
- // If |profile_| is NULL, the Google base URL accessors will return default
- // values, and NTPIsThemedParam() will return an empty string.
- explicit UIThreadSearchTermsData(Profile* profile);
-
- virtual std::string GoogleBaseURLValue() const OVERRIDE;
- virtual std::string GetApplicationLocale() const OVERRIDE;
- virtual base::string16 GetRlzParameterValue(bool from_app_list) const
- OVERRIDE;
- virtual std::string GetSearchClient() const OVERRIDE;
- virtual std::string GetSuggestClient() const OVERRIDE;
- virtual std::string GetSuggestRequestIdentifier() const OVERRIDE;
- virtual std::string NTPIsThemedParam() const OVERRIDE;
-
- // Used by tests to override the value for the Google base URL. Passing the
- // empty string cancels this override.
- static void SetGoogleBaseURL(const std::string& base_url);
-
- private:
- static std::string* google_base_url_;
- Profile* profile_;
-
- DISALLOW_COPY_AND_ASSIGN(UIThreadSearchTermsData);
-};
-
-#endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_
+#endif // COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_
« no previous file with comments | « components/search_engines/DEPS ('k') | components/search_engines/search_terms_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698