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 CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 class ChangeProcessor; | 49 class ChangeProcessor; |
50 class DataTypeManager; | 50 class DataTypeManager; |
51 class JsController; | 51 class JsController; |
52 class SessionModelAssociator; | 52 class SessionModelAssociator; |
53 | 53 |
54 namespace sessions { class SyncSessionSnapshot; } | 54 namespace sessions { class SyncSessionSnapshot; } |
55 } | 55 } |
56 | 56 |
57 namespace syncer { | 57 namespace syncer { |
58 class BaseTransaction; | 58 class BaseTransaction; |
| 59 class CredentialCacheService; |
59 struct SyncCredentials; | 60 struct SyncCredentials; |
60 struct UserShare; | 61 struct UserShare; |
61 } | 62 } |
62 | 63 |
63 namespace sync_pb { | 64 namespace sync_pb { |
64 class EncryptedData; | 65 class EncryptedData; |
65 } // namespace sync_pb | 66 } // namespace sync_pb |
66 | 67 |
67 // ProfileSyncService is the layer between browser subsystems like bookmarks, | 68 // ProfileSyncService is the layer between browser subsystems like bookmarks, |
68 // and the sync backend. Each subsystem is logically thought of as being | 69 // and the sync backend. Each subsystem is logically thought of as being |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 // If |true|, there is setup UI visible so we should not start downloading | 810 // If |true|, there is setup UI visible so we should not start downloading |
810 // data types. | 811 // data types. |
811 bool setup_in_progress_; | 812 bool setup_in_progress_; |
812 | 813 |
813 // The set of currently enabled sync experiments. | 814 // The set of currently enabled sync experiments. |
814 syncer::Experiments current_experiments; | 815 syncer::Experiments current_experiments; |
815 | 816 |
816 // Factory the backend will use to build the SyncManager. | 817 // Factory the backend will use to build the SyncManager. |
817 syncer::SyncManagerFactory sync_manager_factory_; | 818 syncer::SyncManagerFactory sync_manager_factory_; |
818 | 819 |
| 820 // Used to share sync credentials between Metro and Desktop on Windows 8. |
| 821 syncer::CredentialCacheService* credential_cache_service_; |
| 822 |
819 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 823 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
820 }; | 824 }; |
821 | 825 |
822 bool ShouldShowActionOnUI( | 826 bool ShouldShowActionOnUI( |
823 const syncer::SyncProtocolError& error); | 827 const syncer::SyncProtocolError& error); |
824 | 828 |
825 | 829 |
826 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 830 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |