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 COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ |
6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ | 6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 // Shuts down the backend sync components. | 590 // Shuts down the backend sync components. |
591 // |reason| dictates if syncing is being disabled or not, and whether | 591 // |reason| dictates if syncing is being disabled or not, and whether |
592 // to claim ownership of sync thread from backend. | 592 // to claim ownership of sync thread from backend. |
593 void ShutdownImpl(syncer::ShutdownReason reason); | 593 void ShutdownImpl(syncer::ShutdownReason reason); |
594 | 594 |
595 // Return SyncCredentials from the OAuth2TokenService. | 595 // Return SyncCredentials from the OAuth2TokenService. |
596 syncer::SyncCredentials GetCredentials(); | 596 syncer::SyncCredentials GetCredentials(); |
597 | 597 |
598 virtual syncer::WeakHandle<syncer::JsEventHandler> GetJsEventHandler(); | 598 virtual syncer::WeakHandle<syncer::JsEventHandler> GetJsEventHandler(); |
599 | 599 |
600 const sync_driver::DataTypeController::TypeMap& data_type_controllers() { | |
601 return data_type_controllers_; | |
602 } | |
603 | |
604 // Helper method for managing encryption UI. | 600 // Helper method for managing encryption UI. |
605 bool IsEncryptedDatatypeEnabled() const; | 601 bool IsEncryptedDatatypeEnabled() const; |
606 | 602 |
607 // Helper for OnUnrecoverableError. | 603 // Helper for OnUnrecoverableError. |
608 // TODO(tim): Use an enum for |delete_sync_database| here, in ShutdownImpl, | 604 // TODO(tim): Use an enum for |delete_sync_database| here, in ShutdownImpl, |
609 // and in SyncBackendHost::Shutdown. | 605 // and in SyncBackendHost::Shutdown. |
610 void OnUnrecoverableErrorImpl( | 606 void OnUnrecoverableErrorImpl( |
611 const tracked_objects::Location& from_here, | 607 const tracked_objects::Location& from_here, |
612 const std::string& message, | 608 const std::string& message, |
613 bool delete_sync_database); | 609 bool delete_sync_database); |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; | 998 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; |
1003 | 999 |
1004 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1000 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
1005 }; | 1001 }; |
1006 | 1002 |
1007 bool ShouldShowActionOnUI( | 1003 bool ShouldShowActionOnUI( |
1008 const syncer::SyncProtocolError& error); | 1004 const syncer::SyncProtocolError& error); |
1009 | 1005 |
1010 | 1006 |
1011 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ | 1007 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |