root/chrome/browser/history/page_usage_data.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. score_
  2. Predicate

// 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();
}

/* [<][>][^][v][top][bottom][index][help] */