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

Side by Side Diff: components/browser_sync/profile_sync_service.h

Issue 2624943002: [Sync] Move snapshot cache from SBHI to PSS. (Closed)
Patch Set: Address comments. Created 3 years, 11 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
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 void OnSessionRestoreComplete(); 359 void OnSessionRestoreComplete();
360 360
361 // SyncEngineHost implementation. 361 // SyncEngineHost implementation.
362 void OnEngineInitialized( 362 void OnEngineInitialized(
363 syncer::ModelTypeSet initial_types, 363 syncer::ModelTypeSet initial_types,
364 const syncer::WeakHandle<syncer::JsBackend>& js_backend, 364 const syncer::WeakHandle<syncer::JsBackend>& js_backend,
365 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& 365 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&
366 debug_info_listener, 366 debug_info_listener,
367 const std::string& cache_guid, 367 const std::string& cache_guid,
368 bool success) override; 368 bool success) override;
369 void OnSyncCycleCompleted() override; 369 void OnSyncCycleCompleted(const syncer::SyncCycleSnapshot& snapshot) override;
370 void OnProtocolEvent(const syncer::ProtocolEvent& event) override; 370 void OnProtocolEvent(const syncer::ProtocolEvent& event) override;
371 void OnDirectoryTypeCommitCounterUpdated( 371 void OnDirectoryTypeCommitCounterUpdated(
372 syncer::ModelType type, 372 syncer::ModelType type,
373 const syncer::CommitCounters& counters) override; 373 const syncer::CommitCounters& counters) override;
374 void OnDirectoryTypeUpdateCounterUpdated( 374 void OnDirectoryTypeUpdateCounterUpdated(
375 syncer::ModelType type, 375 syncer::ModelType type,
376 const syncer::UpdateCounters& counters) override; 376 const syncer::UpdateCounters& counters) override;
377 void OnDatatypeStatusCounterUpdated( 377 void OnDatatypeStatusCounterUpdated(
378 syncer::ModelType type, 378 syncer::ModelType type,
379 const syncer::StatusCounters& counters) override; 379 const syncer::StatusCounters& counters) override;
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 bool CanConfigureDataTypes() const; 763 bool CanConfigureDataTypes() const;
764 764
765 // Called when a SetupInProgressHandle issued by this instance is destroyed. 765 // Called when a SetupInProgressHandle issued by this instance is destroyed.
766 virtual void OnSetupInProgressHandleDestroyed(); 766 virtual void OnSetupInProgressHandleDestroyed();
767 767
768 // This is a cache of the last authentication response we received from the 768 // This is a cache of the last authentication response we received from the
769 // sync server. The UI queries this to display appropriate messaging to the 769 // sync server. The UI queries this to display appropriate messaging to the
770 // user. 770 // user.
771 GoogleServiceAuthError last_auth_error_; 771 GoogleServiceAuthError last_auth_error_;
772 772
773 // Cache of the last SyncCycleSnapshot received from the sync engine.
774 syncer::SyncCycleSnapshot last_snapshot_;
775
773 // Was the last SYNC_PASSPHRASE_REQUIRED notification sent because it 776 // Was the last SYNC_PASSPHRASE_REQUIRED notification sent because it
774 // was required for encryption, decryption with a cached passphrase, or 777 // was required for encryption, decryption with a cached passphrase, or
775 // because a new passphrase is required? 778 // because a new passphrase is required?
776 syncer::PassphraseRequiredReason passphrase_required_reason_; 779 syncer::PassphraseRequiredReason passphrase_required_reason_;
777 780
778 // TODO(ncarter): Put this in a profile, once there is UI for it. 781 // TODO(ncarter): Put this in a profile, once there is UI for it.
779 // This specifies where to find the sync server. 782 // This specifies where to find the sync server.
780 const GURL sync_service_url_; 783 const GURL sync_service_url_;
781 784
782 // The time that OnConfigureStart is called. This member is zero if 785 // The time that OnConfigureStart is called. This member is zero if
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 base::WeakPtrFactory<ProfileSyncService> weak_factory_; 963 base::WeakPtrFactory<ProfileSyncService> weak_factory_;
961 964
962 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 965 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
963 }; 966 };
964 967
965 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); 968 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error);
966 969
967 } // namespace browser_sync 970 } // namespace browser_sync
968 971
969 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 972 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698