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

Unified Diff: chrome/browser/autocomplete/keyword_extensions_delegate.h

Issue 469623004: Move KeywordProvider to components/omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move tests 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
Index: chrome/browser/autocomplete/keyword_extensions_delegate.h
diff --git a/chrome/browser/autocomplete/keyword_extensions_delegate.h b/chrome/browser/autocomplete/keyword_extensions_delegate.h
deleted file mode 100644
index d4ab571dbc2413c0c7f580c7fe588255881b402f..0000000000000000000000000000000000000000
--- a/chrome/browser/autocomplete/keyword_extensions_delegate.h
+++ /dev/null
@@ -1,59 +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.
-//
-// KeywordExtensionsDelegate contains the extensions-only logic used by
-// KeywordProvider.
-// This file contains the dummy implementation of KeywordExtensionsDelegate,
-// which does nothing.
-
-#ifndef CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_EXTENSIONS_DELEGATE_H_
-#define CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_EXTENSIONS_DELEGATE_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/macros.h"
-#include "base/strings/string16.h"
-
-class AutocompleteInput;
-class KeywordProvider;
-class TemplateURL;
-
-class KeywordExtensionsDelegate {
- public:
- explicit KeywordExtensionsDelegate(KeywordProvider* provider);
- virtual ~KeywordExtensionsDelegate();
-
- // Increments the input ID used to identify if the suggest results from an
- // extension are current.
- virtual void IncrementInputId();
-
- // Returns true if an extension is enabled.
- virtual bool IsEnabledExtension(const std::string& extension_id);
-
- // Handles the extensions portion of KeywordProvider::Start().
- // Depending on |minimal_changes| and whether |input| wants matches
- // synchronous or not, either updates the KeywordProvider's matches with
- // the existing suggestions or asks the |template_url|'s extension to provide
- // matches.
- // Returns true if this delegate should stay in extension keyword mode.
- virtual bool Start(const AutocompleteInput& input,
- bool minimal_changes,
- const TemplateURL* template_url,
- const base::string16& remaining_input);
-
- // Tells the extension with |extension_id| that the user typed the omnibox
- // keyword.
- virtual void EnterExtensionKeywordMode(const std::string& extension_id);
-
- // If an extension previously entered extension keyword mode, exits extension
- // keyword mode. This happens when the user has cleared the keyword or closed
- // the omnibox popup.
- virtual void MaybeEndExtensionKeywordMode();
-
- private:
- DISALLOW_COPY_AND_ASSIGN(KeywordExtensionsDelegate);
-};
-
-#endif // CHROME_BROWSER_AUTOCOMPLETE_KEYWORD_EXTENSIONS_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698