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

Side by Side Diff: chrome/browser/instant/instant_controller.h

Issue 5787008: Makes instant not suggest string that look like urls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge and convert active to displayable Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_INSTANT_INSTANT_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 // Returns true if the preview TabContents is ready to be displayed. In some 161 // Returns true if the preview TabContents is ready to be displayed. In some
162 // situations this may return false yet GetPreviewContents() returns non-NULL. 162 // situations this may return false yet GetPreviewContents() returns non-NULL.
163 bool is_displayable() const { return is_displayable_; } 163 bool is_displayable() const { return is_displayable_; }
164 164
165 // Returns the transition type of the last AutocompleteMatch passed to Update. 165 // Returns the transition type of the last AutocompleteMatch passed to Update.
166 PageTransition::Type last_transition_type() const { 166 PageTransition::Type last_transition_type() const {
167 return last_transition_type_; 167 return last_transition_type_;
168 } 168 }
169 169
170 // Returns the current complete suggested text, or an empty string if there is
171 // no suggestion.
172 string16 GetCompleteSuggestedText();
173
170 // Returns true if we're showing results from a provider that supports the 174 // Returns true if we're showing results from a provider that supports the
171 // instant API. See description of |MightSupportInstant| for how this 175 // instant API. See description of |MightSupportInstant| for how this
172 // differs from actual loading state. 176 // differs from actual loading state.
173 bool IsShowingInstant(); 177 bool IsShowingInstant();
174 178
175 // Returns true if we're attempting to use the instant API with the last URL 179 // Returns true if we're attempting to use the instant API with the last URL
176 // passed to |Update|. The value of this may change if it turns the provider 180 // passed to |Update|. The value of this may change if it turns the provider
177 // doesn't really support the instant API. 181 // doesn't really support the instant API.
178 // The value of |IsShowingInstant| indicates whether what is currently 182 // The value of |IsShowingInstant| indicates whether what is currently
179 // displayed supports instant, whereas this returns the loading state. The 183 // displayed supports instant, whereas this returns the loading state. The
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 ScopedVector<InstantLoader> loaders_to_destroy_; 309 ScopedVector<InstantLoader> loaders_to_destroy_;
306 310
307 // The set of hosts that we don't use instant with. This is shared across all 311 // The set of hosts that we don't use instant with. This is shared across all
308 // instances and only maintained for the current session. 312 // instances and only maintained for the current session.
309 static HostBlacklist* host_blacklist_; 313 static HostBlacklist* host_blacklist_;
310 314
311 DISALLOW_COPY_AND_ASSIGN(InstantController); 315 DISALLOW_COPY_AND_ASSIGN(InstantController);
312 }; 316 };
313 317
314 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ 318 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/instant/instant_browsertest.cc ('k') | chrome/browser/instant/instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698