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; |
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 Loading... |
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_ |
OLD | NEW |