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

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

Issue 18878007: Omnibox: Make the Controller Reorder Matches for Inlining (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter's comments Created 7 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 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_HISTORY_QUICK_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool is_url); 72 bool is_url);
73 73
74 // Only for use in unittests. Takes ownership of |index|. 74 // Only for use in unittests. Takes ownership of |index|.
75 void set_index(history::InMemoryURLIndex* index) { 75 void set_index(history::InMemoryURLIndex* index) {
76 index_for_testing_.reset(index); 76 index_for_testing_.reset(index);
77 } 77 }
78 78
79 AutocompleteInput autocomplete_input_; 79 AutocompleteInput autocomplete_input_;
80 std::string languages_; 80 std::string languages_;
81 81
82 // True if the omnibox will reorder matches as necessary to make the top
83 // one something that is allowed to be the default match.
84 bool omnibox_will_reorder_for_legal_default_match_;
85
82 // Only used for testing. 86 // Only used for testing.
83 scoped_ptr<history::InMemoryURLIndex> index_for_testing_; 87 scoped_ptr<history::InMemoryURLIndex> index_for_testing_;
84 88
85 // This provider is disabled when true. 89 // This provider is disabled when true.
86 static bool disabled_; 90 static bool disabled_;
87 91
88 DISALLOW_COPY_AND_ASSIGN(HistoryQuickProvider); 92 DISALLOW_COPY_AND_ASSIGN(HistoryQuickProvider);
89 }; 93 };
90 94
91 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_ 95 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698