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

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

Issue 510533002: Omnibox: Make URLs of Bookmarks Searchable - Try 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Peter's minor comments Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/bookmark_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
79 // Languages used during the URL formatting. 76 // Languages used during the URL formatting.
80 std::string languages_; 77 std::string languages_;
81 78
82 DISALLOW_COPY_AND_ASSIGN(BookmarkProvider); 79 DISALLOW_COPY_AND_ASSIGN(BookmarkProvider);
83 }; 80 };
84 81
85 #endif // CHROME_BROWSER_AUTOCOMPLETE_BOOKMARK_PROVIDER_H_ 82 #endif // CHROME_BROWSER_AUTOCOMPLETE_BOOKMARK_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/bookmark_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698