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

Unified Diff: ios/public/provider/chrome/browser/search_provider.h

Issue 1260033003: Partially componentize //chrome/browser/search/search.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on iOS Created 5 years, 4 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: ios/public/provider/chrome/browser/search_provider.h
diff --git a/ios/public/provider/chrome/browser/search_provider.h b/ios/public/provider/chrome/browser/search_provider.h
deleted file mode 100644
index aaf825aa55006cb40fa808d109215ae4be14ef12..0000000000000000000000000000000000000000
--- a/ios/public/provider/chrome/browser/search_provider.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2015 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SEARCH_PROVIDER_H_
-#define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SEARCH_PROVIDER_H_
-
-#include <string>
-
-#include "base/macros.h"
-
-namespace ios {
-
-// SearchProvider provides accessor for search features not yet componentized.
-class SearchProvider {
- public:
- SearchProvider() {}
- virtual ~SearchProvider() {}
-
- // Returns whether query extraction is enabled.
- virtual bool IsQueryExtractionEnabled() = 0;
-
- // Returns a string indicating whether InstantExtended is enabled, suitable
- // for adding as a query parameter to the search requests. Returns an empty
- // string otherwise.
- //
- // |for_search| should be set to true for search requests, in which case this
- // returns a non-empty string only if query extraction is enabled.
- virtual std::string InstantExtendedEnabledParam(bool for_search) = 0;
-
- // Returns a string that will cause the search results page to update
- // incrementally. Currently, Instant Extended passes a different param to
- // search results pages that also has this effect, so by default this function
- // returns the empty string when Instant Extended is enabled. However, when
- // doing instant search result prerendering, we still need to pass this param,
- // as Instant Extended does not cause incremental updates by default for the
- // prerender page. Callers should set |for_prerender| in this case to force
- // the returned string to be non-empty.
- virtual std::string ForceInstantResultsParam(bool for_prerender) = 0;
-
- // Returns the start-edge margin of the omnibox in pixels.
- virtual int OmniboxStartMargin() = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(SearchProvider);
-};
-
-} // namespace
-
-#endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SEARCH_PROVIDER_H_
« no previous file with comments | « ios/public/provider/chrome/browser/chrome_browser_provider.cc ('k') | ios/public/test/fake_search_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698