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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_controller.h

Issue 22364007: AutocompleteInput::PageClassification -> AutocompleteInput::OmniboxContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // sent. 70 // sent.
71 void Start(const AutocompleteInput& input); 71 void Start(const AutocompleteInput& input);
72 72
73 // Cancels the current query, ensuring there will be no future notifications 73 // Cancels the current query, ensuring there will be no future notifications
74 // fired. If new matches have come in since the most recent notification was 74 // fired. If new matches have come in since the most recent notification was
75 // fired, they will be discarded. 75 // fired, they will be discarded.
76 // 76 //
77 // If |clear_result| is true, the controller will also erase the result set. 77 // If |clear_result| is true, the controller will also erase the result set.
78 void Stop(bool clear_result); 78 void Stop(bool clear_result);
79 79
80 // Begin asynchronously fetching zero-suggest suggestions for |url| of 80 // Begin asynchronously fetching zero-suggest suggestions for |url|.
81 // classification |page_classification|. |permanent_text| is the omnibox 81 // |omnibox_context| is the current user context. |permanent_text| is the
82 // text for the current page. 82 // omnibox text for the current page.
83 void StartZeroSuggest( 83 void StartZeroSuggest(
84 const GURL& url, 84 const GURL& url,
85 AutocompleteInput::PageClassification page_classification, 85 AutocompleteInput::OmniboxContext omnibox_context,
86 const string16& permanent_text); 86 const string16& permanent_text);
87 87
88 // Cancels any pending zero-suggest fetch. 88 // Cancels any pending zero-suggest fetch.
89 void StopZeroSuggest(); 89 void StopZeroSuggest();
90 90
91 // Asks the relevant provider to delete |match|, and ensures observers are 91 // Asks the relevant provider to delete |match|, and ensures observers are
92 // notified of resulting changes immediately. This should only be called when 92 // notified of resulting changes immediately. This should only be called when
93 // no query is running. 93 // no query is running.
94 void DeleteMatch(const AutocompleteMatch& match); 94 void DeleteMatch(const AutocompleteMatch& match);
95 95
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 // Has StartZeroSuggest() been called but not Start()? 238 // Has StartZeroSuggest() been called but not Start()?
239 bool in_zero_suggest_; 239 bool in_zero_suggest_;
240 240
241 Profile* profile_; 241 Profile* profile_;
242 242
243 DISALLOW_COPY_AND_ASSIGN(AutocompleteController); 243 DISALLOW_COPY_AND_ASSIGN(AutocompleteController);
244 }; 244 };
245 245
246 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_ 246 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698