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

Unified Diff: components/omnibox/autocomplete_provider_delegate.h

Issue 510783002: Rename AutocompleteProviderDelegate to AutocompleteProviderClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
« no previous file with comments | « components/omnibox/autocomplete_provider_client.h ('k') | components/omnibox/base_search_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/autocomplete_provider_delegate.h
diff --git a/components/omnibox/autocomplete_provider_delegate.h b/components/omnibox/autocomplete_provider_delegate.h
deleted file mode 100644
index ef4d060abadee686a03b4d215bd01ee4dd9802f9..0000000000000000000000000000000000000000
--- a/components/omnibox/autocomplete_provider_delegate.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// 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 COMPONENTS_OMNIBOX_AUTOCOMPLETE_PROVIDER_DELEGATE_H_
-#define COMPONENTS_OMNIBOX_AUTOCOMPLETE_PROVIDER_DELEGATE_H_
-
-#include "base/strings/string16.h"
-#include "components/history/core/browser/keyword_id.h"
-#include "components/metrics/proto/omnibox_event.pb.h"
-
-struct AutocompleteMatch;
-class AutocompleteSchemeClassifier;
-class GURL;
-
-namespace history {
-class URLDatabase;
-}
-
-namespace net {
-class URLRequestContextGetter;
-}
-
-class AutocompleteProviderDelegate {
- public:
- virtual ~AutocompleteProviderDelegate() {}
-
- // Returns the request context.
- virtual net::URLRequestContextGetter* RequestContext() = 0;
-
- // Returns whether the provider should work in incognito mode.
- virtual bool IsOffTheRecord() = 0;
-
- // The value to use for Accept-Languages HTTP header when making an HTTP
- // request.
- virtual std::string AcceptLanguages() = 0;
-
- // Returns true when suggest support is enabled.
- virtual bool SearchSuggestEnabled() = 0;
-
- // Returns whether the bookmark bar is visible on all tabs.
- virtual bool ShowBookmarkBar() = 0;
-
- // Returns the scheme classifier.
- virtual const AutocompleteSchemeClassifier& SchemeClassifier() = 0;
-
- // Given some string |text| that the user wants to use for navigation,
- // determines how it should be interpreted.
- virtual void Classify(
- const base::string16& text,
- bool prefer_keyword,
- bool allow_exact_keyword_match,
- metrics::OmniboxEventProto::PageClassification page_classification,
- AutocompleteMatch* match,
- GURL* alternate_nav_url) = 0;
-
- // Returns the in-memory URL database.
- virtual history::URLDatabase* InMemoryDatabase() = 0;
-
- // Deletes all URL and search term entries matching the given |term| and
- // |keyword_id| from history.
- virtual void DeleteMatchingURLsForKeywordFromHistory(
- history::KeywordID keyword_id,
- const base::string16& term) = 0;
-
- // Returns whether the user has tab sync enabled and tab sync is unencrypted.
- virtual bool TabSyncEnabledAndUnencrypted() = 0;
-
- // Starts prefetching the image at the given |url|.
- virtual void PrefetchImage(const GURL& url) = 0;
-};
-
-#endif // COMPONENTS_OMNIBOX_AUTOCOMPLETE_PROVIDER_DELEGATE_H_
« no previous file with comments | « components/omnibox/autocomplete_provider_client.h ('k') | components/omnibox/base_search_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698