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

Side by Side Diff: components/enhanced_bookmarks/bookmark_server_cluster_service.h

Issue 682933002: Reduce frequency of requesting bookmark clusters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_CLUSTER_SERVICE_H_ 5 #ifndef COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_CLUSTER_SERVICE_H_
6 #define COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_CLUSTER_SERVICE_H_ 6 #define COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_CLUSTER_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // BookmarkServerService methods. 60 // BookmarkServerService methods.
61 scoped_ptr<net::URLFetcher> CreateFetcher() override; 61 scoped_ptr<net::URLFetcher> CreateFetcher() override;
62 bool ProcessResponse(const std::string& response, 62 bool ProcessResponse(const std::string& response,
63 bool* should_notify) override; 63 bool* should_notify) override;
64 void CleanAfterFailure() override; 64 void CleanAfterFailure() override;
65 65
66 // EnhancedBookmarkModelObserver methods. 66 // EnhancedBookmarkModelObserver methods.
67 void EnhancedBookmarkModelLoaded() override; 67 void EnhancedBookmarkModelLoaded() override;
68 void EnhancedBookmarkAdded(const BookmarkNode* node) override; 68 void EnhancedBookmarkAdded(const BookmarkNode* node) override;
69 void EnhancedBookmarkRemoved(const BookmarkNode* node) override; 69 void EnhancedBookmarkRemoved(const BookmarkNode* node) override;
70 void EnhancedBookmarkNodeChanged(const BookmarkNode* node) override;
70 void EnhancedBookmarkAllUserNodesRemoved() override; 71 void EnhancedBookmarkAllUserNodesRemoved() override;
71 void EnhancedBookmarkRemoteIdChanged(const BookmarkNode* node, 72 void EnhancedBookmarkRemoteIdChanged(const BookmarkNode* node,
72 const std::string& old_remote_id, 73 const std::string& old_remote_id,
73 const std::string& remote_id) override; 74 const std::string& remote_id) override;
74 75
75 private: 76 private:
76 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Cluster); 77 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Cluster);
77 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, SignOut); 78 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, SignOut);
78 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Serialization); 79 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Serialization);
79 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, SaveToPrefs); 80 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, SaveToPrefs);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 PrefService* pref_service_; 116 PrefService* pref_service_;
116 // The cluster data, a map from cluster name to a vector of stars.id. 117 // The cluster data, a map from cluster name to a vector of stars.id.
117 ClusterMap cluster_data_; 118 ClusterMap cluster_data_;
118 119
119 DISALLOW_COPY_AND_ASSIGN(BookmarkServerClusterService); 120 DISALLOW_COPY_AND_ASSIGN(BookmarkServerClusterService);
120 }; 121 };
121 122
122 } // namespace enhanced_bookmarks 123 } // namespace enhanced_bookmarks
123 124
124 #endif // COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_CLUSTER_SERVICE_H_ 125 #endif // COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_CLUSTER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698