| 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 "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 BookmarkNode* CreateBookmarkNode(); | 385 BookmarkNode* CreateBookmarkNode(); |
| 386 BookmarkNode* CreateOtherBookmarksNode(); | 386 BookmarkNode* CreateOtherBookmarksNode(); |
| 387 | 387 |
| 388 // Creates a root node (either the bookmark bar node or other node) from the | 388 // Creates a root node (either the bookmark bar node or other node) from the |
| 389 // specified starred entry. | 389 // specified starred entry. |
| 390 BookmarkNode* CreateRootNodeFromStarredEntry( | 390 BookmarkNode* CreateRootNodeFromStarredEntry( |
| 391 const history::StarredEntry& entry); | 391 const history::StarredEntry& entry); |
| 392 | 392 |
| 393 // Notification that a favicon has finished loading. If we can decode the | 393 // Notification that a favicon has finished loading. If we can decode the |
| 394 // favicon, FaviconLoaded is invoked. | 394 // favicon, FaviconLoaded is invoked. |
| 395 void OnFaviconDataAvailable( | 395 void OnFaviconDataAvailable(FaviconService::Handle handle, |
| 396 FaviconService::Handle handle, | 396 history::FaviconData favicon); |
| 397 bool know_favicon, | |
| 398 scoped_refptr<RefCountedMemory> data, | |
| 399 bool expired, | |
| 400 GURL icon_url); | |
| 401 | 397 |
| 402 // Invoked from the node to load the favicon. Requests the favicon from the | 398 // Invoked from the node to load the favicon. Requests the favicon from the |
| 403 // favicon service. | 399 // favicon service. |
| 404 void LoadFavicon(BookmarkNode* node); | 400 void LoadFavicon(BookmarkNode* node); |
| 405 | 401 |
| 406 // If we're waiting on a favicon for node, the load request is canceled. | 402 // If we're waiting on a favicon for node, the load request is canceled. |
| 407 void CancelPendingFaviconLoadRequests(BookmarkNode* node); | 403 void CancelPendingFaviconLoadRequests(BookmarkNode* node); |
| 408 | 404 |
| 409 // NotificationObserver. | 405 // NotificationObserver. |
| 410 virtual void Observe(NotificationType type, | 406 virtual void Observe(NotificationType type, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 scoped_refptr<BookmarkStorage> store_; | 461 scoped_refptr<BookmarkStorage> store_; |
| 466 | 462 |
| 467 scoped_ptr<BookmarkIndex> index_; | 463 scoped_ptr<BookmarkIndex> index_; |
| 468 | 464 |
| 469 base::WaitableEvent loaded_signal_; | 465 base::WaitableEvent loaded_signal_; |
| 470 | 466 |
| 471 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); | 467 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); |
| 472 }; | 468 }; |
| 473 | 469 |
| 474 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ | 470 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ |
| OLD | NEW |