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_ENGINE_SYNCER_H_ | 5 #ifndef SYNC_ENGINE_SYNCER_H_ |
6 #define SYNC_ENGINE_SYNCER_H_ | 6 #define SYNC_ENGINE_SYNCER_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
71 | 71 |
72 // Requests to download updates for the |request_types|. For a well-behaved | 72 // Requests to download updates for the |request_types|. For a well-behaved |
73 // client with a working connection to the invalidations server, this should | 73 // client with a working connection to the invalidations server, this should |
74 // be unnecessary. It may be invoked periodically to try to keep the client | 74 // be unnecessary. It may be invoked periodically to try to keep the client |
75 // in sync despite bugs or transient failures. | 75 // in sync despite bugs or transient failures. |
76 // Returns: false if an error occurred and retries should backoff, true | 76 // Returns: false if an error occurred and retries should backoff, true |
77 // otherwise. | 77 // otherwise. |
78 virtual bool PollSyncShare(ModelTypeSet request_types, | 78 virtual bool PollSyncShare(ModelTypeSet request_types, |
79 sessions::SyncSession* session); | 79 sessions::SyncSession* session); |
80 | 80 |
81 // Posts a ClearServerData command. | |
82 // Returns: false if an error occurred and retries shoudl backoff, true | |
pavely
2015/07/27 19:45:05
shoudl => should
maniscalco
2015/07/27 20:38:12
Good catch. Fixed.
| |
83 // otherwise. | |
84 virtual bool PostClearServerData(sessions::SyncSession* session); | |
85 | |
81 private: | 86 private: |
82 friend class SyncerTest; | 87 friend class SyncerTest; |
83 FRIEND_TEST_ALL_PREFIXES(SyncerTest, NameClashWithResolver); | 88 FRIEND_TEST_ALL_PREFIXES(SyncerTest, NameClashWithResolver); |
84 FRIEND_TEST_ALL_PREFIXES(SyncerTest, IllegalAndLegalUpdates); | 89 FRIEND_TEST_ALL_PREFIXES(SyncerTest, IllegalAndLegalUpdates); |
85 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingAndNewParent); | 90 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingAndNewParent); |
86 FRIEND_TEST_ALL_PREFIXES(SyncerTest, | 91 FRIEND_TEST_ALL_PREFIXES(SyncerTest, |
87 TestCommitListOrderingAndNewParentAndChild); | 92 TestCommitListOrderingAndNewParentAndChild); |
88 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingCounterexample); | 93 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingCounterexample); |
89 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingWithNesting); | 94 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingWithNesting); |
90 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingWithNewItems); | 95 FRIEND_TEST_ALL_PREFIXES(SyncerTest, TestCommitListOrderingWithNewItems); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
125 | 130 |
126 // Whether the syncer is in the middle of a sync attempt. | 131 // Whether the syncer is in the middle of a sync attempt. |
127 bool is_syncing_; | 132 bool is_syncing_; |
128 | 133 |
129 DISALLOW_COPY_AND_ASSIGN(Syncer); | 134 DISALLOW_COPY_AND_ASSIGN(Syncer); |
130 }; | 135 }; |
131 | 136 |
132 } // namespace syncer | 137 } // namespace syncer |
133 | 138 |
134 #endif // SYNC_ENGINE_SYNCER_H_ | 139 #endif // SYNC_ENGINE_SYNCER_H_ |
OLD | NEW |