| Index: components/bookmarks/browser/bookmark_client.h
|
| diff --git a/components/bookmarks/browser/bookmark_client.h b/components/bookmarks/browser/bookmark_client.h
|
| index ffdb64c25093a7409b31cecb03602d7c73e7e737..97bb04771919df7d936a6067558c90531bec7010 100644
|
| --- a/components/bookmarks/browser/bookmark_client.h
|
| +++ b/components/bookmarks/browser/bookmark_client.h
|
| @@ -11,9 +11,11 @@
|
|
|
| #include "base/callback_forward.h"
|
| #include "base/task/cancelable_task_tracker.h"
|
| +#include "components/bookmarks/browser/bookmark_storage.h"
|
| #include "components/favicon_base/favicon_callback.h"
|
|
|
| class BookmarkNode;
|
| +class BookmarkPermanentNode;
|
| class GURL;
|
|
|
| namespace base {
|
| @@ -55,14 +57,31 @@ class BookmarkClient {
|
| const NodeSet& nodes,
|
| NodeTypedCountPairs* node_typed_count_pairs);
|
|
|
| - // Returns whether the embedder wants permanent node of type |node_type|
|
| + // Returns whether the embedder wants permanent node |node|
|
| // to always be visible or to only show them when not empty.
|
| - virtual bool IsPermanentNodeVisible(int node_type) = 0;
|
| + virtual bool IsPermanentNodeVisible(const BookmarkPermanentNode* node) = 0;
|
|
|
| // Wrapper around RecordAction defined in base/metrics/user_metrics.h
|
| // that ensure that the action is posted from the correct thread.
|
| virtual void RecordAction(const base::UserMetricsAction& action) = 0;
|
|
|
| + // Returns a task that will be used to load any additional root nodes. This
|
| + // task will be invoked in the Profile's IO task runner.
|
| + virtual bookmarks::LoadExtraCallback GetLoadExtraNodesCallback() = 0;
|
| +
|
| + // Checks if the children of the given permanent |node| can be removed from
|
| + // the bookmark model.
|
| + virtual bool CanRemovePermanentNodeChildren(const BookmarkNode* node) = 0;
|
| +
|
| + // Checks if the |permanent_node| can have its title updated.
|
| + virtual bool CanSetPermanentNodeTitle(const BookmarkNode* permanent_node) = 0;
|
| +
|
| + // Checks if |node| should sync.
|
| + virtual bool CanSyncNode(const BookmarkNode* node) = 0;
|
| +
|
| + // Checks if the children of |parent| can be reordered or sorted.
|
| + virtual bool CanReorderChildren(const BookmarkNode* parent) = 0;
|
| +
|
| protected:
|
| virtual ~BookmarkClient() {}
|
| };
|
|
|