Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: components/bookmarks/browser/bookmark_expanded_state_tracker.h

Issue 865163003: bookmarks: Move BookmarkNode into 'bookmarks' namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enhanced_bookmarks fix Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_EXPANDED_STATE_TRACKER_H_ 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_EXPANDED_STATE_TRACKER_H_
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_EXPANDED_STATE_TRACKER_H_ 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_EXPANDED_STATE_TRACKER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "components/bookmarks/browser/base_bookmark_model_observer.h" 10 #include "components/bookmarks/browser/base_bookmark_model_observer.h"
11 11
12 class BookmarkNode;
13 class PrefService; 12 class PrefService;
14 13
15 namespace bookmarks { 14 namespace bookmarks {
16 15
17 class BookmarkModel; 16 class BookmarkModel;
17 class BookmarkNode;
18 18
19 // BookmarkExpandedStateTracker is used to track a set of expanded nodes. The 19 // BookmarkExpandedStateTracker is used to track a set of expanded nodes. The
20 // nodes are persisted in preferences. If an expanded node is removed from the 20 // nodes are persisted in preferences. If an expanded node is removed from the
21 // model BookmarkExpandedStateTracker removes the node. 21 // model BookmarkExpandedStateTracker removes the node.
22 class BookmarkExpandedStateTracker : public BaseBookmarkModelObserver { 22 class BookmarkExpandedStateTracker : public BaseBookmarkModelObserver {
23 public: 23 public:
24 typedef std::set<const BookmarkNode*> Nodes; 24 typedef std::set<const BookmarkNode*> Nodes;
25 25
26 BookmarkExpandedStateTracker(BookmarkModel* bookmark_model, 26 BookmarkExpandedStateTracker(BookmarkModel* bookmark_model,
27 PrefService* pref_service); 27 PrefService* pref_service);
(...skipping 22 matching lines...) Expand all
50 50
51 BookmarkModel* bookmark_model_; 51 BookmarkModel* bookmark_model_;
52 PrefService* pref_service_; 52 PrefService* pref_service_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(BookmarkExpandedStateTracker); 54 DISALLOW_COPY_AND_ASSIGN(BookmarkExpandedStateTracker);
55 }; 55 };
56 56
57 } // namespace bookmarks 57 } // namespace bookmarks
58 58
59 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_EXPANDED_STATE_TRACKER_H_ 59 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_EXPANDED_STATE_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698