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

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

Issue 437793002: Componentize AutocompleteProviderListener (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/autocomplete_provider_listener.h
diff --git a/chrome/browser/autocomplete/autocomplete_provider_listener.h b/chrome/browser/autocomplete/autocomplete_provider_listener.h
deleted file mode 100644
index 7bd53a374beb2b8e1cb33b35e02cb562d8401506..0000000000000000000000000000000000000000
--- a/chrome/browser/autocomplete/autocomplete_provider_listener.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// 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_AUTOCOMPLETE_AUTOCOMPLETE_PROVIDER_LISTENER_H_
-#define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_PROVIDER_LISTENER_H_
-
-class AutocompleteProviderListener {
- public:
- // Called by a provider as a notification that something has changed.
- // |updated_matches| should be true iff the matches have changed in some
- // way (they may not have changed if, for example, the provider did an
- // asynchronous query to get more matches, came up with none, and is now
- // giving up).
- //
- // NOTE: Providers MUST only call this method while processing asynchronous
- // queries. Do not call this for a synchronous query.
- //
- // NOTE: There's no parameter to tell the listener _which_ provider is
- // calling it. Because the AutocompleteController (the typical listener)
- // doesn't cache the providers' individual matches locally, it has to get
- // them all again when this is called anyway, so such a parameter wouldn't
- // actually be useful.
- virtual void OnProviderUpdate(bool updated_matches) = 0;
-
- protected:
- virtual ~AutocompleteProviderListener() {}
-};
-
-#endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_PROVIDER_LISTENER_H_
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_controller.h ('k') | chrome/browser/autocomplete/autocomplete_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698