#include "components/browsing_data/core/counters/bookmark_counter.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/scoped_observation.h"
#include "components/bookmarks/browser/base_bookmark_model_observer.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_node.h"
namespace {
int CountBookmarksFromNode(const bookmarks::BookmarkNode* node,
base::Time period_start) { … }
BookmarkModelCallback;
class BookmarkModelHelper : public bookmarks::BaseBookmarkModelObserver { … };
}
namespace browsing_data {
const char BookmarkCounter::kPrefName[] = …;
BookmarkCounter::BookmarkCounter(bookmarks::BookmarkModel* bookmark_model)
: … { … }
BookmarkCounter::~BookmarkCounter() { … }
void BookmarkCounter::OnInitialized() { … }
const char* BookmarkCounter::GetPrefName() const { … }
void BookmarkCounter::Count() { … }
void BookmarkCounter::CountBookmarks(
const bookmarks::BookmarkModel* bookmark_model) { … }
}