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_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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 // Profile::IsSyncAllowed() is probably a better signal than this function. | 430 // Profile::IsSyncAllowed() is probably a better signal than this function. |
431 // This function can be called from any thread, and the implementation doesn't | 431 // This function can be called from any thread, and the implementation doesn't |
432 // assume it's running on the UI thread. | 432 // assume it's running on the UI thread. |
433 static bool IsSyncAllowedByFlag(); | 433 static bool IsSyncAllowedByFlag(); |
434 | 434 |
435 // Returns whether sync is currently allowed on this platform. | 435 // Returns whether sync is currently allowed on this platform. |
436 bool IsSyncAllowedByPlatform() const; | 436 bool IsSyncAllowedByPlatform() const; |
437 | 437 |
438 // Whether sync is currently blocked from starting because the sync | 438 // Whether sync is currently blocked from starting because the sync |
439 // confirmation dialog hasn't been confirmed. | 439 // confirmation dialog hasn't been confirmed. |
440 bool IsSyncConfirmationNeeded() const; | 440 virtual bool IsSyncConfirmationNeeded() const; |
441 | 441 |
442 // Returns whether sync is managed, i.e. controlled by configuration | 442 // Returns whether sync is managed, i.e. controlled by configuration |
443 // management. If so, the user is not allowed to configure sync. | 443 // management. If so, the user is not allowed to configure sync. |
444 virtual bool IsManaged() const; | 444 virtual bool IsManaged() const; |
445 | 445 |
446 // syncer::UnrecoverableErrorHandler implementation. | 446 // syncer::UnrecoverableErrorHandler implementation. |
447 void OnUnrecoverableError(const tracked_objects::Location& from_here, | 447 void OnUnrecoverableError(const tracked_objects::Location& from_here, |
448 const std::string& message) override; | 448 const std::string& message) override; |
449 | 449 |
450 // The functions below (until ActivateDataType()) should only be | 450 // The functions below (until ActivateDataType()) should only be |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 base::WeakPtrFactory<ProfileSyncService> weak_factory_; | 896 base::WeakPtrFactory<ProfileSyncService> weak_factory_; |
897 | 897 |
898 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 898 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
899 }; | 899 }; |
900 | 900 |
901 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); | 901 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); |
902 | 902 |
903 } // namespace browser_sync | 903 } // namespace browser_sync |
904 | 904 |
905 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 905 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |