Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Side by Side Diff: sync/internal_api/sync_manager_impl.h

Issue 10702074: Refactor sync-specific parts out of SyncNotifier/SyncNotifierObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FOR_THE_HORDE Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // Cryptographer::Observer implementation. 174 // Cryptographer::Observer implementation.
175 virtual void OnEncryptedTypesChanged( 175 virtual void OnEncryptedTypesChanged(
176 ModelTypeSet encrypted_types, 176 ModelTypeSet encrypted_types,
177 bool encrypt_everything) OVERRIDE; 177 bool encrypt_everything) OVERRIDE;
178 178
179 // SyncNotifierObserver implementation. 179 // SyncNotifierObserver implementation.
180 virtual void OnNotificationsEnabled() OVERRIDE; 180 virtual void OnNotificationsEnabled() OVERRIDE;
181 virtual void OnNotificationsDisabled( 181 virtual void OnNotificationsDisabled(
182 NotificationsDisabledReason reason) OVERRIDE; 182 NotificationsDisabledReason reason) OVERRIDE;
183 virtual void OnIncomingNotification( 183 virtual void OnIncomingNotification(
184 const ModelTypePayloadMap& type_payloads, 184 const ObjectIdPayloadMap& id_payloads,
185 IncomingNotificationSource source) OVERRIDE; 185 IncomingNotificationSource source) OVERRIDE;
186 186
187 // Called only by our NetworkChangeNotifier. 187 // Called only by our NetworkChangeNotifier.
188 virtual void OnIPAddressChanged() OVERRIDE; 188 virtual void OnIPAddressChanged() OVERRIDE;
189 189
190 const SyncScheduler* scheduler() const; 190 const SyncScheduler* scheduler() const;
191 191
192 private: 192 private:
193 friend class SyncManagerTest; 193 friend class SyncManagerTest;
194 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, NudgeDelayTest); 194 FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, NudgeDelayTest);
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 // conflict resolver) updated the nigori's encryption keys in this chrome 415 // conflict resolver) updated the nigori's encryption keys in this chrome
416 // instantiation. 416 // instantiation.
417 int nigori_overwrite_count_; 417 int nigori_overwrite_count_;
418 418
419 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 419 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
420 }; 420 };
421 421
422 } // namespace syncer 422 } // namespace syncer
423 423
424 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ 424 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698