#include "components/history/core/browser/visited_link_database.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "components/database_utils/url_converter.h"
#include "components/url_formatter/url_formatter.h"
#include "sql/statement.h"
#include "url/gurl.h"
#define HISTORY_VISITED_LINK_ROW_FIELDS …
namespace history {
VisitedLinkDatabase::VisitedLinkEnumerator::VisitedLinkEnumerator()
: … { … }
VisitedLinkDatabase::VisitedLinkEnumerator::~VisitedLinkEnumerator() = default;
bool VisitedLinkDatabase::DropVisitedLinkTable() { … }
bool VisitedLinkDatabase::VisitedLinkEnumerator::GetNextVisitedLink(
VisitedLinkRow& r) { … }
VisitedLinkDatabase::VisitedLinkDatabase() = default;
VisitedLinkDatabase::~VisitedLinkDatabase() = default;
void VisitedLinkDatabase::FillVisitedLinkRow(sql::Statement& s,
VisitedLinkRow& i) { … }
bool VisitedLinkDatabase::GetVisitedLinkRow(VisitedLinkID visited_link_id,
VisitedLinkRow& info) { … }
VisitedLinkID VisitedLinkDatabase::GetRowForVisitedLink(
URLID link_url_id,
const GURL& top_level_url,
const GURL& frame_url,
VisitedLinkRow& info) { … }
bool VisitedLinkDatabase::UpdateVisitedLinkRowVisitCount(
VisitedLinkID visited_link_id,
int visit_count) { … }
VisitedLinkID VisitedLinkDatabase::AddVisitedLink(URLID link_url_id,
const GURL& top_level_url,
const GURL& frame_url,
int visit_count) { … }
bool VisitedLinkDatabase::DeleteVisitedLinkRow(VisitedLinkID id) { … }
bool VisitedLinkDatabase::InitVisitedLinkEnumeratorForEverything(
VisitedLinkEnumerator& enumerator) { … }
bool VisitedLinkDatabase::CreateVisitedLinkTable() { … }
}