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