OLD | NEW |
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_BOOKMARK_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_BOOKMARK_PROVIDER_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_BOOKMARK_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_BOOKMARK_PROVIDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "components/omnibox/autocomplete_input.h" | 10 #include "components/omnibox/autocomplete_input.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // 'unhighlighted' classification span so the tail of the source string | 66 // 'unhighlighted' classification span so the tail of the source string |
67 // properly highlighted. | 67 // properly highlighted. |
68 static ACMatchClassifications ClassificationsFromMatch( | 68 static ACMatchClassifications ClassificationsFromMatch( |
69 const query_parser::Snippet::MatchPositions& positions, | 69 const query_parser::Snippet::MatchPositions& positions, |
70 size_t text_length, | 70 size_t text_length, |
71 bool is_url); | 71 bool is_url); |
72 | 72 |
73 Profile* profile_; | 73 Profile* profile_; |
74 BookmarkModel* bookmark_model_; | 74 BookmarkModel* bookmark_model_; |
75 | 75 |
| 76 // True if we should use matches in the URL for scoring. |
| 77 const bool score_using_url_matches_; |
| 78 |
76 // Languages used during the URL formatting. | 79 // Languages used during the URL formatting. |
77 std::string languages_; | 80 std::string languages_; |
78 | 81 |
79 DISALLOW_COPY_AND_ASSIGN(BookmarkProvider); | 82 DISALLOW_COPY_AND_ASSIGN(BookmarkProvider); |
80 }; | 83 }; |
81 | 84 |
82 #endif // CHROME_BROWSER_AUTOCOMPLETE_BOOKMARK_PROVIDER_H_ | 85 #endif // CHROME_BROWSER_AUTOCOMPLETE_BOOKMARK_PROVIDER_H_ |
OLD | NEW |