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