summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks/bookmark_model.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_model.h')
-rw-r--r--chrome/browser/bookmarks/bookmark_model.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/bookmarks/bookmark_model.h b/chrome/browser/bookmarks/bookmark_model.h
index 1ffdcbe..7790790 100644
--- a/chrome/browser/bookmarks/bookmark_model.h
+++ b/chrome/browser/bookmarks/bookmark_model.h
@@ -61,6 +61,8 @@ class BookmarkNode : public TreeNode<BookmarkNode> {
// Returns the URL.
const GURL& GetURL() const { return url_; }
+ // Sets the URL to the given value.
+ void SetURL(const GURL& url) { url_ = url; }
// Returns a unique id for this node.
// For bookmark nodes that are managed by the bookmark model, the IDs are
@@ -144,8 +146,8 @@ class BookmarkNode : public TreeNode<BookmarkNode> {
HistoryService::Handle favicon_load_handle_;
// The URL. BookmarkModel maintains maps off this URL, it is important that
- // it not change once the node has been created.
- const GURL url_;
+ // changes to the URL is done through the bookmark model.
+ GURL url_;
// Type of node.
BookmarkNode::Type type_;
@@ -231,6 +233,9 @@ class BookmarkModel : public NotificationObserver, public BookmarkService {
#endif
void SetTitle(const BookmarkNode* node, const string16& title);
+ // Sets the URL of the specified bookmark node.
+ void SetURL(const BookmarkNode* node, const GURL& url);
+
// Returns true if the model finished loading.
bool IsLoaded() { return loaded_; }