OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ |
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 // The permanent nodes are the three special top level nodes "bookmark_bar", | 165 // The permanent nodes are the three special top level nodes "bookmark_bar", |
166 // "synced" and "other". Their visibility is dependent on information from the | 166 // "synced" and "other". Their visibility is dependent on information from the |
167 // profile, hence this special subclass to accomodate them. | 167 // profile, hence this special subclass to accomodate them. |
168 class BookmarkPermanentNode : public BookmarkNode { | 168 class BookmarkPermanentNode : public BookmarkNode { |
169 public: | 169 public: |
170 // Creates a new node with |id| and |url|. | 170 // Creates a new node with |id| and |url|. |
171 BookmarkPermanentNode(int64 id, const GURL& url, Profile* profile); | 171 BookmarkPermanentNode(int64 id, const GURL& url, Profile* profile); |
172 | 172 |
173 virtual ~BookmarkPermanentNode(); | 173 virtual ~BookmarkPermanentNode(); |
174 virtual bool IsVisible() const; | 174 virtual bool IsVisible() const OVERRIDE; |
175 | 175 |
176 private: | 176 private: |
177 Profile* profile_; | 177 Profile* profile_; |
178 | 178 |
179 DISALLOW_COPY_AND_ASSIGN(BookmarkPermanentNode); | 179 DISALLOW_COPY_AND_ASSIGN(BookmarkPermanentNode); |
180 }; | 180 }; |
181 | 181 |
182 // BookmarkModel -------------------------------------------------------------- | 182 // BookmarkModel -------------------------------------------------------------- |
183 | 183 |
184 // BookmarkModel provides a directed acyclic graph of URLs and folders. | 184 // BookmarkModel provides a directed acyclic graph of URLs and folders. |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 scoped_ptr<BookmarkIndex> index_; | 476 scoped_ptr<BookmarkIndex> index_; |
477 | 477 |
478 base::WaitableEvent loaded_signal_; | 478 base::WaitableEvent loaded_signal_; |
479 | 479 |
480 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; | 480 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; |
481 | 481 |
482 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); | 482 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); |
483 }; | 483 }; |
484 | 484 |
485 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ | 485 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ |
OLD | NEW |