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_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 Loading... |
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; | |
71 void EnhancedBookmarkAllUserNodesRemoved() override; | 70 void EnhancedBookmarkAllUserNodesRemoved() override; |
72 void EnhancedBookmarkRemoteIdChanged(const BookmarkNode* node, | 71 void EnhancedBookmarkRemoteIdChanged(const BookmarkNode* node, |
73 const std::string& old_remote_id, | 72 const std::string& old_remote_id, |
74 const std::string& remote_id) override; | 73 const std::string& remote_id) override; |
75 | 74 |
76 private: | 75 private: |
77 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Cluster); | 76 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Cluster); |
78 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, SignOut); | 77 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, SignOut); |
79 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Serialization); | 78 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Serialization); |
80 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, SaveToPrefs); | 79 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, SaveToPrefs); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 PrefService* pref_service_; | 115 PrefService* pref_service_; |
117 // The cluster data, a map from cluster name to a vector of stars.id. | 116 // The cluster data, a map from cluster name to a vector of stars.id. |
118 ClusterMap cluster_data_; | 117 ClusterMap cluster_data_; |
119 | 118 |
120 DISALLOW_COPY_AND_ASSIGN(BookmarkServerClusterService); | 119 DISALLOW_COPY_AND_ASSIGN(BookmarkServerClusterService); |
121 }; | 120 }; |
122 | 121 |
123 } // namespace enhanced_bookmarks | 122 } // namespace enhanced_bookmarks |
124 | 123 |
125 #endif // COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_CLUSTER_SERVICE_H_ | 124 #endif // COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_CLUSTER_SERVICE_H_ |
OLD | NEW |