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

Unified Diff: chrome/browser/history/page_usage_data.cc

Issue 428253008: Revert of Partially move history_types.{cc,h} to //components/history (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/page_usage_data.h ('k') | chrome/browser/history/top_sites_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/page_usage_data.cc
diff --git a/chrome/browser/history/page_usage_data.cc b/chrome/browser/history/page_usage_data.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9604e197b093a10e26bf53bbb8a753c1c55d4ee8
--- /dev/null
+++ b/chrome/browser/history/page_usage_data.cc
@@ -0,0 +1,21 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/history/page_usage_data.h"
+
+#include <algorithm>
+
+PageUsageData::PageUsageData(history::SegmentID id)
+ : id_(id),
+ score_(0.0) {
+}
+
+PageUsageData::~PageUsageData() {
+}
+
+// static
+bool PageUsageData::Predicate(const PageUsageData* lhs,
+ const PageUsageData* rhs) {
+ return lhs->GetScore() > rhs->GetScore();
+}
« no previous file with comments | « chrome/browser/history/page_usage_data.h ('k') | chrome/browser/history/top_sites_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698