#include "components/power_bookmarks/core/bookmark_client_base.h"
#include <string>
#include <vector>
#include "base/metrics/histogram_functions.h"
#include "base/time/time.h"
#include "base/uuid.h"
#include "components/bookmarks/browser/base_bookmark_model_observer.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_utils.h"
namespace power_bookmarks {
const char kSaveLocationStateHistogramBase[] = …;
const base::TimeDelta kRejectionCoolOffTime = …;
namespace {
const char kWasSuggestedFolderKey[] = …;
const char kTrue[] = …;
const char kFalse[] = …;
}
BookmarkClientBase::BookmarkClientBase() = default;
BookmarkClientBase::~BookmarkClientBase() = default;
void BookmarkClientBase::Init(bookmarks::BookmarkModel* model) { … }
void BookmarkClientBase::AddSuggestedSaveLocationProvider(
SuggestedSaveLocationProvider* suggestion_provider) { … }
void BookmarkClientBase::RemoveSuggestedSaveLocationProvider(
SuggestedSaveLocationProvider* suggestion_provider) { … }
const bookmarks::BookmarkNode* BookmarkClientBase::GetSuggestedSaveLocation(
const GURL& url) { … }
BookmarkClientBase::NodeMoveObserver::NodeMoveObserver(
BookmarkClientBase* client)
: … { … }
BookmarkClientBase::NodeMoveObserver::~NodeMoveObserver() = default;
void BookmarkClientBase::NodeMoveObserver::BookmarkModelChanged() { … }
void BookmarkClientBase::NodeMoveObserver::BookmarkNodeAdded(
const bookmarks::BookmarkNode* parent,
size_t index,
bool newly_added) { … }
void BookmarkClientBase::NodeMoveObserver::BookmarkNodeMoved(
const bookmarks::BookmarkNode* old_parent,
size_t old_index,
const bookmarks::BookmarkNode* new_parent,
size_t new_index) { … }
}