| 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 19 matching lines...) Expand all Loading... |
| 30 class BookmarkStorage; | 30 class BookmarkStorage; |
| 31 struct BookmarkMatch; | 31 struct BookmarkMatch; |
| 32 class PrefService; | 32 class PrefService; |
| 33 class ScopedGroupBookmarkActions; | 33 class ScopedGroupBookmarkActions; |
| 34 | 34 |
| 35 namespace base { | 35 namespace base { |
| 36 class FilePath; | 36 class FilePath; |
| 37 class SequencedTaskRunner; | 37 class SequencedTaskRunner; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace bookmarks { |
| 41 class ScopedGroupBookmarkActions; |
| 42 } |
| 43 |
| 40 namespace favicon_base { | 44 namespace favicon_base { |
| 41 struct FaviconImageResult; | 45 struct FaviconImageResult; |
| 42 } | 46 } |
| 43 | 47 |
| 44 namespace test { | 48 namespace test { |
| 45 class TestBookmarkClient; | 49 class TestBookmarkClient; |
| 46 } | 50 } |
| 47 | 51 |
| 48 // BookmarkModel -------------------------------------------------------------- | 52 // BookmarkModel -------------------------------------------------------------- |
| 49 | 53 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // be refetched. This notification is sent by BookmarkClient. | 279 // be refetched. This notification is sent by BookmarkClient. |
| 276 void OnFaviconChanged(const std::set<GURL>& urls); | 280 void OnFaviconChanged(const std::set<GURL>& urls); |
| 277 | 281 |
| 278 // Returns the client used by this BookmarkModel. | 282 // Returns the client used by this BookmarkModel. |
| 279 BookmarkClient* client() const { return client_; } | 283 BookmarkClient* client() const { return client_; } |
| 280 | 284 |
| 281 private: | 285 private: |
| 282 friend class BookmarkCodecTest; | 286 friend class BookmarkCodecTest; |
| 283 friend class BookmarkModelTest; | 287 friend class BookmarkModelTest; |
| 284 friend class BookmarkStorage; | 288 friend class BookmarkStorage; |
| 285 friend class ScopedGroupBookmarkActions; | 289 friend class bookmarks::ScopedGroupBookmarkActions; |
| 286 friend class test::TestBookmarkClient; | 290 friend class test::TestBookmarkClient; |
| 287 | 291 |
| 288 // Used to order BookmarkNodes by URL. | 292 // Used to order BookmarkNodes by URL. |
| 289 class NodeURLComparator { | 293 class NodeURLComparator { |
| 290 public: | 294 public: |
| 291 bool operator()(const BookmarkNode* n1, const BookmarkNode* n2) const { | 295 bool operator()(const BookmarkNode* n1, const BookmarkNode* n2) const { |
| 292 return n1->url() < n2->url(); | 296 return n1->url() < n2->url(); |
| 293 } | 297 } |
| 294 }; | 298 }; |
| 295 | 299 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 | 419 |
| 416 // See description of IsDoingExtensiveChanges above. | 420 // See description of IsDoingExtensiveChanges above. |
| 417 int extensive_changes_; | 421 int extensive_changes_; |
| 418 | 422 |
| 419 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; | 423 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; |
| 420 | 424 |
| 421 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); | 425 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); |
| 422 }; | 426 }; |
| 423 | 427 |
| 424 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_ | 428 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MODEL_H_ |
| OLD | NEW |