OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // Called only by our NetworkChangeNotifier. | 172 // Called only by our NetworkChangeNotifier. |
173 virtual void OnIPAddressChanged() OVERRIDE; | 173 virtual void OnIPAddressChanged() OVERRIDE; |
174 | 174 |
175 const SyncScheduler* scheduler() const; | 175 const SyncScheduler* scheduler() const; |
176 | 176 |
177 private: | 177 private: |
178 friend class SyncManagerTest; | 178 friend class SyncManagerTest; |
179 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, NudgeDelayTest); | 179 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, NudgeDelayTest); |
180 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, OnNotificationStateChange); | 180 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, OnNotificationStateChange); |
181 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, OnIncomingNotification); | 181 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, OnIncomingNotification); |
| 182 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, PurgeDisabledTypes); |
182 | 183 |
183 struct NotificationInfo { | 184 struct NotificationInfo { |
184 NotificationInfo(); | 185 NotificationInfo(); |
185 ~NotificationInfo(); | 186 ~NotificationInfo(); |
186 | 187 |
187 int total_count; | 188 int total_count; |
188 std::string payload; | 189 std::string payload; |
189 | 190 |
190 // Returned pointer owned by the caller. | 191 // Returned pointer owned by the caller. |
191 DictionaryValue* ToValue() const; | 192 DictionaryValue* ToValue() const; |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 // conflict resolver) updated the nigori's encryption keys in this chrome | 400 // conflict resolver) updated the nigori's encryption keys in this chrome |
400 // instantiation. | 401 // instantiation. |
401 int nigori_overwrite_count_; | 402 int nigori_overwrite_count_; |
402 | 403 |
403 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 404 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
404 }; | 405 }; |
405 | 406 |
406 } // namespace syncer | 407 } // namespace syncer |
407 | 408 |
408 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 409 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
OLD | NEW |