Chromium Code Reviews| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 #include "components/sync/model/model_type_store.h" | 51 #include "components/sync/model/model_type_store.h" |
| 52 #include "components/sync/syncable/user_share.h" | 52 #include "components/sync/syncable/user_share.h" |
| 53 #include "components/version_info/version_info.h" | 53 #include "components/version_info/version_info.h" |
| 54 #include "google_apis/gaia/google_service_auth_error.h" | 54 #include "google_apis/gaia/google_service_auth_error.h" |
| 55 #include "google_apis/gaia/oauth2_token_service.h" | 55 #include "google_apis/gaia/oauth2_token_service.h" |
| 56 #include "net/base/backoff_entry.h" | 56 #include "net/base/backoff_entry.h" |
| 57 #include "url/gurl.h" | 57 #include "url/gurl.h" |
| 58 | 58 |
| 59 class Profile; | 59 class Profile; |
| 60 class ProfileOAuth2TokenService; | 60 class ProfileOAuth2TokenService; |
| 61 class RecentTabsSubMenuModelTest; | |
| 61 class SigninManagerWrapper; | 62 class SigninManagerWrapper; |
| 62 | 63 |
| 63 namespace sync_sessions { | 64 namespace sync_sessions { |
| 64 class FaviconCache; | 65 class FaviconCache; |
| 65 class OpenTabsUIDelegate; | 66 class OpenTabsUIDelegate; |
| 66 class SessionsSyncManager; | 67 class SessionsSyncManager; |
| 67 } // namespace sync_sessions | 68 } // namespace sync_sessions |
| 68 | 69 |
| 69 namespace syncer { | 70 namespace syncer { |
| 70 class BackendMigrator; | 71 class BackendMigrator; |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 605 NOT_REQUESTED, // The user turned off sync. | 606 NOT_REQUESTED, // The user turned off sync. |
| 606 NOT_REQUESTED_NOT_SETUP, // The user turned off sync and setup completed | 607 NOT_REQUESTED_NOT_SETUP, // The user turned off sync and setup completed |
| 607 // is false. Might indicate a stop-and-clear. | 608 // is false. Might indicate a stop-and-clear. |
| 608 NEEDS_CONFIRMATION, // The user must confirm sync settings. | 609 NEEDS_CONFIRMATION, // The user must confirm sync settings. |
| 609 IS_MANAGED, // Sync is disallowed by enterprise policy. | 610 IS_MANAGED, // Sync is disallowed by enterprise policy. |
| 610 NOT_ALLOWED_BY_PLATFORM, // Sync is disallowed by the platform. | 611 NOT_ALLOWED_BY_PLATFORM, // Sync is disallowed by the platform. |
| 611 SYNC_INITIAL_STATE_LIMIT | 612 SYNC_INITIAL_STATE_LIMIT |
| 612 }; | 613 }; |
| 613 | 614 |
| 614 friend class TestProfileSyncService; | 615 friend class TestProfileSyncService; |
| 616 friend class ::RecentTabsSubMenuModelTest; | |
|
Peter Kasting
2017/03/23 04:48:35
Is there a way to test this functionality without
| |
| 615 | 617 |
| 616 // Helper to install and configure a data type manager. | 618 // Helper to install and configure a data type manager. |
| 617 void ConfigureDataTypeManager(); | 619 void ConfigureDataTypeManager(); |
| 618 | 620 |
| 619 // Shuts down the engine sync components. | 621 // Shuts down the engine sync components. |
| 620 // |reason| dictates if syncing is being disabled or not, and whether | 622 // |reason| dictates if syncing is being disabled or not, and whether |
| 621 // to claim ownership of sync thread from engine. | 623 // to claim ownership of sync thread from engine. |
| 622 void ShutdownImpl(syncer::ShutdownReason reason); | 624 void ShutdownImpl(syncer::ShutdownReason reason); |
| 623 | 625 |
| 624 // Helper method for managing encryption UI. | 626 // Helper method for managing encryption UI. |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 888 base::WeakPtrFactory<ProfileSyncService> weak_factory_; | 890 base::WeakPtrFactory<ProfileSyncService> weak_factory_; |
| 889 | 891 |
| 890 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 892 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 891 }; | 893 }; |
| 892 | 894 |
| 893 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); | 895 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); |
| 894 | 896 |
| 895 } // namespace browser_sync | 897 } // namespace browser_sync |
| 896 | 898 |
| 897 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 899 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |