OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
285 | 285 |
286 // Returns true if there are bookmarks, otherwise returns false. | 286 // Returns true if there are bookmarks, otherwise returns false. |
287 // This method is thread safe. | 287 // This method is thread safe. |
288 bool HasBookmarks(); | 288 bool HasBookmarks(); |
289 | 289 |
290 // Returns true if there is a bookmark with the |url|. | 290 // Returns true if there is a bookmark with the |url|. |
291 // This method is thread safe. | 291 // This method is thread safe. |
292 // See BookmarkService for more details on this. | 292 // See BookmarkService for more details on this. |
293 virtual bool IsBookmarked(const GURL& url) OVERRIDE; | 293 virtual bool IsBookmarked(const GURL& url) OVERRIDE; |
294 | 294 |
295 // Returns all the bookmarked urls. | 295 // Returns all the bookmarked urls and their title. |
sky
2012/08/03 16:04:39
title -> titles
michaelbai
2012/08/03 17:57:49
Done.
| |
296 // This method is thread safe. | 296 // This method is thread safe. |
297 // See BookmarkService for more details on this. | 297 // See BookmarkService for more details on this. |
298 virtual void GetBookmarks(std::vector<GURL>* urls) OVERRIDE; | 298 virtual void GetBookmarks( |
299 std::vector<BookmarkService::Bookmark>* urls) OVERRIDE; | |
299 | 300 |
300 // Blocks until loaded; this is NOT invoked on the main thread. | 301 // Blocks until loaded; this is NOT invoked on the main thread. |
301 // See BookmarkService for more details on this. | 302 // See BookmarkService for more details on this. |
302 virtual void BlockTillLoaded() OVERRIDE; | 303 virtual void BlockTillLoaded() OVERRIDE; |
303 | 304 |
304 // Returns the node with |id|, or NULL if there is no node with |id|. | 305 // Returns the node with |id|, or NULL if there is no node with |id|. |
305 const BookmarkNode* GetNodeByID(int64 id) const; | 306 const BookmarkNode* GetNodeByID(int64 id) const; |
306 | 307 |
307 // Adds a new folder node at the specified position. | 308 // Adds a new folder node at the specified position. |
308 const BookmarkNode* AddFolder(const BookmarkNode* parent, | 309 const BookmarkNode* AddFolder(const BookmarkNode* parent, |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
488 | 489 |
489 // See description of IsDoingExtensiveChanges above. | 490 // See description of IsDoingExtensiveChanges above. |
490 int extensive_changes_; | 491 int extensive_changes_; |
491 | 492 |
492 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; | 493 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; |
493 | 494 |
494 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); | 495 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); |
495 }; | 496 }; |
496 | 497 |
497 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ | 498 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ |
OLD | NEW |