diff options
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_drag_data.h')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_drag_data.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/bookmarks/bookmark_drag_data.h b/chrome/browser/bookmarks/bookmark_drag_data.h index e26c362..7f007a2 100644 --- a/chrome/browser/bookmarks/bookmark_drag_data.h +++ b/chrome/browser/bookmarks/bookmark_drag_data.h @@ -86,6 +86,9 @@ struct BookmarkDragData { explicit BookmarkDragData(const BookmarkNode* node); explicit BookmarkDragData(const std::vector<const BookmarkNode*>& nodes); + // Reads bookmarks from the given vector. + bool ReadFromVector(const std::vector<const BookmarkNode*>& nodes); + // Writes elements to the clipboard. void WriteToClipboard(Profile* profile) const; @@ -138,6 +141,11 @@ struct BookmarkDragData { // Clears the data. void Clear(); + // Sets |profile_path_| to that of |profile|. This is useful for the + // constructors/readers that don't set it. This should only be called if the + // profile path is not already set. + void SetOriginatingProfile(Profile* profile); + // Returns true if this data is from the specified profile. bool IsFromProfile(Profile* profile) const; |