#include "components/bookmarks/managed/managed_bookmarks_tracker.h"
#include <memory>
#include <string>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/ptr_util.h"
#include "base/notreached.h"
#include "base/strings/utf_string_conversions.h"
#include "base/uuid.h"
#include "base/values.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_node.h"
#include "components/bookmarks/common/bookmark_metrics.h"
#include "components/bookmarks/common/bookmark_pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
namespace bookmarks {
const char ManagedBookmarksTracker::kName[] = …;
const char ManagedBookmarksTracker::kUrl[] = …;
const char ManagedBookmarksTracker::kChildren[] = …;
const char ManagedBookmarksTracker::kFolderName[] = …;
ManagedBookmarksTracker::ManagedBookmarksTracker(
BookmarkModel* model,
PrefService* prefs,
GetManagementDomainCallback callback)
: … { … }
ManagedBookmarksTracker::~ManagedBookmarksTracker() { … }
base::Value::List ManagedBookmarksTracker::GetInitialManagedBookmarks() { … }
int64_t ManagedBookmarksTracker::LoadInitial(BookmarkNode* folder,
const base::Value::List& list,
int64_t next_node_id) { … }
void ManagedBookmarksTracker::Init(BookmarkPermanentNode* managed_node) { … }
std::u16string ManagedBookmarksTracker::GetBookmarksFolderTitle() const { … }
void ManagedBookmarksTracker::ReloadManagedBookmarksFolderTitle() { … }
void ManagedBookmarksTracker::ReloadManagedBookmarks() { … }
void ManagedBookmarksTracker::UpdateBookmarks(const BookmarkNode* folder,
const base::Value::List& list) { … }
bool ManagedBookmarksTracker::LoadBookmark(const base::Value::List& list,
size_t index,
std::u16string* title,
GURL* url,
const base::Value::List** children) { … }
}