summaryrefslogtreecommitdiffstats
path: root/components/enhanced_bookmarks/enhanced_bookmark_model_observer.h
diff options
context:
space:
mode:
authortfarina <tfarina@chromium.org>2015-02-04 14:10:50 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-04 22:11:54 +0000
commita665b308ea4c6c7e75f56a4c614d279c0d25e64a (patch)
treee2064c59c0b66758670b02b2b2984a518d79d219 /components/enhanced_bookmarks/enhanced_bookmark_model_observer.h
parent6c46080bac609fe3df0701b403709559c8ff4b4e (diff)
downloadchromium_src-a665b308ea4c6c7e75f56a4c614d279c0d25e64a.zip
chromium_src-a665b308ea4c6c7e75f56a4c614d279c0d25e64a.tar.gz
chromium_src-a665b308ea4c6c7e75f56a4c614d279c0d25e64a.tar.bz2
bookmarks: Move BookmarkNode into 'bookmarks' namespace.
BUG=370433 TEST=unit_tests, components_unittests R=sky@chromium.org TBR=joaodasilva@chromium.org (for policy) Review URL: https://codereview.chromium.org/865163003 Cr-Commit-Position: refs/heads/master@{#314653}
Diffstat (limited to 'components/enhanced_bookmarks/enhanced_bookmark_model_observer.h')
-rw-r--r--components/enhanced_bookmarks/enhanced_bookmark_model_observer.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/components/enhanced_bookmarks/enhanced_bookmark_model_observer.h b/components/enhanced_bookmarks/enhanced_bookmark_model_observer.h
index eb83b57..45714fb 100644
--- a/components/enhanced_bookmarks/enhanced_bookmark_model_observer.h
+++ b/components/enhanced_bookmarks/enhanced_bookmark_model_observer.h
@@ -7,7 +7,9 @@
#include <string>
+namespace bookmarks {
class BookmarkNode;
+}
namespace enhanced_bookmarks {
@@ -20,13 +22,14 @@ class EnhancedBookmarkModelObserver {
virtual void EnhancedBookmarkModelShuttingDown() = 0;
// Called when a node is added to the model.
- virtual void EnhancedBookmarkAdded(const BookmarkNode* node) = 0;
+ virtual void EnhancedBookmarkAdded(const bookmarks::BookmarkNode* node) = 0;
// Called when a node is removed from the model.
- virtual void EnhancedBookmarkRemoved(const BookmarkNode* node) = 0;
+ virtual void EnhancedBookmarkRemoved(const bookmarks::BookmarkNode* node) = 0;
// Called when a node has changed.
- virtual void EnhancedBookmarkNodeChanged(const BookmarkNode* node) = 0;
+ virtual void EnhancedBookmarkNodeChanged(
+ const bookmarks::BookmarkNode* node) = 0;
// Called when all user editable nodes are removed from the model.
virtual void EnhancedBookmarkAllUserNodesRemoved() = 0;
@@ -34,13 +37,15 @@ class EnhancedBookmarkModelObserver {
// Called when the remote id of a node changes. If |remote_id| is empty, the
// remote id has been cleared. This could happen if multiple nodes with the
// same remote id has been detected.
- virtual void EnhancedBookmarkRemoteIdChanged(const BookmarkNode* node,
- const std::string& old_remote_id,
- const std::string& remote_id) {};
+ virtual void EnhancedBookmarkRemoteIdChanged(
+ const bookmarks::BookmarkNode* node,
+ const std::string& old_remote_id,
+ const std::string& remote_id) {}
protected:
virtual ~EnhancedBookmarkModelObserver() {}
};
} // namespace enhanced_bookmarks
+
#endif // COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_MODEL_OBSERVER_H_