OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_ | 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_ |
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_ | 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
289 // Returns the set of meta info keys that should not be copied when a node is | 289 // Returns the set of meta info keys that should not be copied when a node is |
290 // cloned. | 290 // cloned. |
291 const std::set<std::string>& non_cloned_keys() const { | 291 const std::set<std::string>& non_cloned_keys() const { |
292 return non_cloned_keys_; | 292 return non_cloned_keys_; |
293 } | 293 } |
294 | 294 |
295 // Sets the sync transaction version of |node|. | 295 // Sets the sync transaction version of |node|. |
296 void SetNodeSyncTransactionVersion(const BookmarkNode* node, | 296 void SetNodeSyncTransactionVersion(const BookmarkNode* node, |
297 int64 sync_transaction_version); | 297 int64 sync_transaction_version); |
298 | 298 |
299 // Notify BookmarkModel that the favicons for |urls| have changed and have to | 299 // Notify BookmarkModel that the favicons for |urls| have changed and have to |
sky
2015/06/22 15:19:48
nit: update comment.
| |
300 // be refetched. This notification is sent by BookmarkClient. | 300 // be refetched. This notification is sent by BookmarkClient. |
301 void OnFaviconChanged(const std::set<GURL>& urls); | 301 void OnFaviconsChanged(const std::set<GURL>& page_urls, |
sky
2015/06/22 15:19:48
Please add test coverage of this function too.
| |
302 const std::set<GURL>& icon_urls); | |
302 | 303 |
303 // Returns the client used by this BookmarkModel. | 304 // Returns the client used by this BookmarkModel. |
304 BookmarkClient* client() const { return client_; } | 305 BookmarkClient* client() const { return client_; } |
305 | 306 |
306 private: | 307 private: |
307 friend class BookmarkCodecTest; | 308 friend class BookmarkCodecTest; |
308 friend class BookmarkStorage; | 309 friend class BookmarkStorage; |
309 friend class ScopedGroupBookmarkActions; | 310 friend class ScopedGroupBookmarkActions; |
310 friend class TestBookmarkClient; | 311 friend class TestBookmarkClient; |
311 | 312 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
442 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; | 443 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; |
443 | 444 |
444 std::set<std::string> non_cloned_keys_; | 445 std::set<std::string> non_cloned_keys_; |
445 | 446 |
446 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); | 447 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); |
447 }; | 448 }; |
448 | 449 |
449 } // namespace bookmarks | 450 } // namespace bookmarks |
450 | 451 |
451 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_ | 452 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_ |
OLD | NEW |