| 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 history::FaviconData favicon); | 395 history::FaviconData favicon); |
| 396 | 396 |
| 397 // 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 |
| 398 // favicon service. | 398 // favicon service. |
| 399 void LoadFavicon(BookmarkNode* node); | 399 void LoadFavicon(BookmarkNode* node); |
| 400 | 400 |
| 401 // 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. |
| 402 void CancelPendingFaviconLoadRequests(BookmarkNode* node); | 402 void CancelPendingFaviconLoadRequests(BookmarkNode* node); |
| 403 | 403 |
| 404 // NotificationObserver. | 404 // NotificationObserver. |
| 405 virtual void Observe(NotificationType type, | 405 virtual void Observe(int type, |
| 406 const NotificationSource& source, | 406 const NotificationSource& source, |
| 407 const NotificationDetails& details); | 407 const NotificationDetails& details); |
| 408 | 408 |
| 409 // Generates and returns the next node ID. | 409 // Generates and returns the next node ID. |
| 410 int64 generate_next_node_id(); | 410 int64 generate_next_node_id(); |
| 411 | 411 |
| 412 // Sets the maximum node ID to the given value. | 412 // Sets the maximum node ID to the given value. |
| 413 // This is used by BookmarkCodec to report the maximum ID after it's done | 413 // This is used by BookmarkCodec to report the maximum ID after it's done |
| 414 // decoding since during decoding codec assigns node IDs. | 414 // decoding since during decoding codec assigns node IDs. |
| 415 void set_next_node_id(int64 id) { next_node_id_ = id; } | 415 void set_next_node_id(int64 id) { next_node_id_ = id; } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 scoped_refptr<BookmarkStorage> store_; | 461 scoped_refptr<BookmarkStorage> store_; |
| 462 | 462 |
| 463 scoped_ptr<BookmarkIndex> index_; | 463 scoped_ptr<BookmarkIndex> index_; |
| 464 | 464 |
| 465 base::WaitableEvent loaded_signal_; | 465 base::WaitableEvent loaded_signal_; |
| 466 | 466 |
| 467 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); | 467 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); |
| 468 }; | 468 }; |
| 469 | 469 |
| 470 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ | 470 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ |
| OLD | NEW |