| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_H_ | 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_H_ |
| 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_H_ | 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/task/cancelable_task_tracker.h" | 9 #include "base/task/cancelable_task_tracker.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "components/favicon_base/favicon_types.h" | 11 #include "components/favicon_base/favicon_types.h" |
| 12 #include "ui/base/models/tree_node_model.h" | 12 #include "ui/base/models/tree_node_model.h" |
| 13 #include "ui/gfx/image/image.h" | 13 #include "ui/gfx/image/image.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 class BookmarkModel; | 16 class BookmarkModel; |
| 17 | 17 |
| 18 // BookmarkNode --------------------------------------------------------------- | 18 // BookmarkNode --------------------------------------------------------------- |
| 19 | 19 |
| 20 // BookmarkNode contains information about a starred entry: title, URL, favicon, | 20 // BookmarkNode contains information about a starred entry: title, URL, favicon, |
| 21 // id and type. BookmarkNodes are returned from BookmarkModel. | 21 // id and type. BookmarkNodes are returned from BookmarkModel. |
| 22 class BookmarkNode : public ui::TreeNode<BookmarkNode> { | 22 class BookmarkNode : public ui::TreeNode<BookmarkNode> { |
| 23 public: | 23 public: |
| 24 enum Type { | 24 enum Type { |
| 25 URL, | 25 URL, |
| 26 FOLDER, | 26 FOLDER, |
| 27 BOOKMARK_BAR, | 27 BOOKMARK_BAR, |
| 28 OTHER_NODE, | 28 OTHER_NODE, |
| 29 MOBILE | 29 MOBILE, |
| 30 MANAGED, |
| 30 }; | 31 }; |
| 31 | 32 |
| 32 enum FaviconState { | 33 enum FaviconState { |
| 33 INVALID_FAVICON, | 34 INVALID_FAVICON, |
| 34 LOADING_FAVICON, | 35 LOADING_FAVICON, |
| 35 LOADED_FAVICON, | 36 LOADED_FAVICON, |
| 36 }; | 37 }; |
| 37 | 38 |
| 38 typedef std::map<std::string, std::string> MetaInfoMap; | 39 typedef std::map<std::string, std::string> MetaInfoMap; |
| 39 | 40 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // BookmarkNode overrides: | 204 // BookmarkNode overrides: |
| 204 virtual bool IsVisible() const OVERRIDE; | 205 virtual bool IsVisible() const OVERRIDE; |
| 205 | 206 |
| 206 private: | 207 private: |
| 207 bool visible_; | 208 bool visible_; |
| 208 | 209 |
| 209 DISALLOW_COPY_AND_ASSIGN(BookmarkPermanentNode); | 210 DISALLOW_COPY_AND_ASSIGN(BookmarkPermanentNode); |
| 210 }; | 211 }; |
| 211 | 212 |
| 212 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_H_ | 213 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_H_ |
| OLD | NEW |