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

Side by Side Diff: components/omnibox/scored_history_match.h

Issue 1181113005: Componentize HistoryURLProvider/ScoredHistoryMatch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prepare_history_url_provider_for_c14n
Patch Set: Rebase Created 5 years, 6 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 | « components/omnibox/history_url_provider.cc ('k') | components/omnibox/scored_history_match.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_SCORED_HISTORY_MATCH_H_ 5 #ifndef COMPONENTS_OMNIBOX_SCORED_HISTORY_MATCH_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_SCORED_HISTORY_MATCH_H_ 6 #define COMPONENTS_OMNIBOX_SCORED_HISTORY_MATCH_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "components/history/core/browser/history_match.h" 13 #include "components/history/core/browser/history_match.h"
14 #include "components/history/core/browser/history_types.h" 14 #include "components/history/core/browser/history_types.h"
15 #include "components/omnibox/in_memory_url_index_types.h" 15 #include "components/omnibox/in_memory_url_index_types.h"
16 #include "testing/gtest/include/gtest/gtest_prod.h" 16 #include "testing/gtest/include/gtest/gtest_prod.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // are given topicality score of 0. By default it is initalized to -1. 186 // are given topicality score of 0. By default it is initalized to -1.
187 static float topicality_threshold_; 187 static float topicality_threshold_;
188 188
189 // |hqp_relevance_buckets_| gives mapping from (topicality*frequency) 189 // |hqp_relevance_buckets_| gives mapping from (topicality*frequency)
190 // to the final relevance scoring. Please see GetFinalRelevancyScore() 190 // to the final relevance scoring. Please see GetFinalRelevancyScore()
191 // for more details and scoring method. 191 // for more details and scoring method.
192 static std::vector<ScoreMaxRelevance>* hqp_relevance_buckets_; 192 static std::vector<ScoreMaxRelevance>* hqp_relevance_buckets_;
193 }; 193 };
194 typedef std::vector<ScoredHistoryMatch> ScoredHistoryMatches; 194 typedef std::vector<ScoredHistoryMatch> ScoredHistoryMatches;
195 195
196 #endif // CHROME_BROWSER_AUTOCOMPLETE_SCORED_HISTORY_MATCH_H_ 196 #endif // COMPONENTS_OMNIBOX_SCORED_HISTORY_MATCH_H_
OLDNEW
« no previous file with comments | « components/omnibox/history_url_provider.cc ('k') | components/omnibox/scored_history_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698