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

Side by Side Diff: chrome/browser/bookmarks/chrome_bookmark_client.h

Issue 2883523002: Reduce the memory usage of bookmarks storage (Closed)
Patch Set: Move to client. Created 3 years, 6 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 CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ 5 #ifndef CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_
6 #define CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ 6 #define CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 bool SupportsTypedCountForUrls() override; 46 bool SupportsTypedCountForUrls() override;
47 void GetTypedCountForUrls(UrlTypedCountMap* url_typed_count_map) override; 47 void GetTypedCountForUrls(UrlTypedCountMap* url_typed_count_map) override;
48 bool IsPermanentNodeVisible( 48 bool IsPermanentNodeVisible(
49 const bookmarks::BookmarkPermanentNode* node) override; 49 const bookmarks::BookmarkPermanentNode* node) override;
50 void RecordAction(const base::UserMetricsAction& action) override; 50 void RecordAction(const base::UserMetricsAction& action) override;
51 bookmarks::LoadExtraCallback GetLoadExtraNodesCallback() override; 51 bookmarks::LoadExtraCallback GetLoadExtraNodesCallback() override;
52 bool CanSetPermanentNodeTitle( 52 bool CanSetPermanentNodeTitle(
53 const bookmarks::BookmarkNode* permanent_node) override; 53 const bookmarks::BookmarkNode* permanent_node) override;
54 bool CanSyncNode(const bookmarks::BookmarkNode* node) override; 54 bool CanSyncNode(const bookmarks::BookmarkNode* node) override;
55 bool CanBeEditedByUser(const bookmarks::BookmarkNode* node) override; 55 bool CanBeEditedByUser(const bookmarks::BookmarkNode* node) override;
56 std::vector<std::string> ExecludedMetaKeys() override;
56 57
57 private: 58 private:
58 // Pointer to the associated Profile. Must outlive ChromeBookmarkClient. 59 // Pointer to the associated Profile. Must outlive ChromeBookmarkClient.
59 Profile* profile_; 60 Profile* profile_;
60 61
61 // Pointer to the ManagedBookmarkService responsible for bookmark policy. May 62 // Pointer to the ManagedBookmarkService responsible for bookmark policy. May
62 // be null during testing. 63 // be null during testing.
63 bookmarks::ManagedBookmarkService* managed_bookmark_service_; 64 bookmarks::ManagedBookmarkService* managed_bookmark_service_;
64 65
65 #if defined(OS_ANDROID) 66 #if defined(OS_ANDROID)
66 // Owns the observer used by Offline Page listening to Bookmark Model events. 67 // Owns the observer used by Offline Page listening to Bookmark Model events.
67 std::unique_ptr<offline_pages::OfflinePageBookmarkObserver> 68 std::unique_ptr<offline_pages::OfflinePageBookmarkObserver>
68 offline_page_observer_; 69 offline_page_observer_;
69 #endif 70 #endif
70 71
71 DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkClient); 72 DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkClient);
72 }; 73 };
73 74
74 #endif // CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ 75 #endif // CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/bookmarks/chrome_bookmark_client.cc » ('j') | components/bookmarks/browser/bookmark_client.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698