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

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

Issue 2343463003: [Sync] Fix namespaces for the sync_sessions component. (Closed)
Patch Set: Fix gn. Created 4 years, 3 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
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_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 <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "url/gurl.h" 56 #include "url/gurl.h"
57 57
58 class Profile; 58 class Profile;
59 class ProfileOAuth2TokenService; 59 class ProfileOAuth2TokenService;
60 class SigninManagerWrapper; 60 class SigninManagerWrapper;
61 class SyncErrorController; 61 class SyncErrorController;
62 class SyncTypePreferenceProvider; 62 class SyncTypePreferenceProvider;
63 63
64 namespace browser_sync { 64 namespace browser_sync {
65 class BackendMigrator; 65 class BackendMigrator;
66 class FaviconCache;
67 class SessionsSyncManager;
68 } // namespace browser_sync 66 } // namespace browser_sync
69 67
70 namespace sync_driver { 68 namespace sync_driver {
71 class DataTypeManager; 69 class DataTypeManager;
72 class DeviceInfoSyncService; 70 class DeviceInfoSyncService;
73 class DeviceInfoTracker; 71 class DeviceInfoTracker;
74 class LocalDeviceInfoProvider; 72 class LocalDeviceInfoProvider;
75 class OpenTabsUIDelegate;
76 class SyncApiComponentFactory; 73 class SyncApiComponentFactory;
77 class SyncClient; 74 class SyncClient;
78 } // namespace sync_driver 75 } // namespace sync_driver
79 76
80 namespace sync_driver_v2 { 77 namespace sync_driver_v2 {
81 class DeviceInfoService; 78 class DeviceInfoService;
82 } 79 }
83 80
81 namespace sync_sessions {
82 class FaviconCache;
83 class OpenTabsUIDelegate;
84 class SessionsSyncManager;
85 } // namespace sync_sessions
86
84 namespace syncer { 87 namespace syncer {
85 class BaseTransaction; 88 class BaseTransaction;
86 class NetworkResources; 89 class NetworkResources;
87 class TypeDebugInfoObserver; 90 class TypeDebugInfoObserver;
88 struct CommitCounters; 91 struct CommitCounters;
89 struct StatusCounters; 92 struct StatusCounters;
90 struct SyncCredentials; 93 struct SyncCredentials;
91 struct UpdateCounters; 94 struct UpdateCounters;
92 struct UserShare; 95 struct UserShare;
93 } // namespace syncer 96 } // namespace syncer
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 syncer::ModelTypeSet chosen_types) override; 285 syncer::ModelTypeSet chosen_types) override;
283 void SetFirstSetupComplete() override; 286 void SetFirstSetupComplete() override;
284 bool IsFirstSetupInProgress() const override; 287 bool IsFirstSetupInProgress() const override;
285 std::unique_ptr<sync_driver::SyncSetupInProgressHandle> 288 std::unique_ptr<sync_driver::SyncSetupInProgressHandle>
286 GetSetupInProgressHandle() override; 289 GetSetupInProgressHandle() override;
287 bool IsSetupInProgress() const override; 290 bool IsSetupInProgress() const override;
288 bool ConfigurationDone() const override; 291 bool ConfigurationDone() const override;
289 const GoogleServiceAuthError& GetAuthError() const override; 292 const GoogleServiceAuthError& GetAuthError() const override;
290 bool HasUnrecoverableError() const override; 293 bool HasUnrecoverableError() const override;
291 bool IsBackendInitialized() const override; 294 bool IsBackendInitialized() const override;
292 sync_driver::OpenTabsUIDelegate* GetOpenTabsUIDelegate() override; 295 sync_sessions::OpenTabsUIDelegate* GetOpenTabsUIDelegate() override;
293 bool IsPassphraseRequiredForDecryption() const override; 296 bool IsPassphraseRequiredForDecryption() const override;
294 base::Time GetExplicitPassphraseTime() const override; 297 base::Time GetExplicitPassphraseTime() const override;
295 bool IsUsingSecondaryPassphrase() const override; 298 bool IsUsingSecondaryPassphrase() const override;
296 void EnableEncryptEverything() override; 299 void EnableEncryptEverything() override;
297 bool IsEncryptEverythingEnabled() const override; 300 bool IsEncryptEverythingEnabled() const override;
298 void SetEncryptionPassphrase(const std::string& passphrase, 301 void SetEncryptionPassphrase(const std::string& passphrase,
299 PassphraseType type) override; 302 PassphraseType type) override;
300 bool SetDecryptionPassphrase(const std::string& passphrase) override 303 bool SetDecryptionPassphrase(const std::string& passphrase) override
301 WARN_UNUSED_RESULT; 304 WARN_UNUSED_RESULT;
302 bool IsCryptographerReady( 305 bool IsCryptographerReady(
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 562
560 // OAuth2TokenService::Observer implementation. 563 // OAuth2TokenService::Observer implementation.
561 void OnRefreshTokenAvailable(const std::string& account_id) override; 564 void OnRefreshTokenAvailable(const std::string& account_id) override;
562 void OnRefreshTokenRevoked(const std::string& account_id) override; 565 void OnRefreshTokenRevoked(const std::string& account_id) override;
563 void OnRefreshTokensLoaded() override; 566 void OnRefreshTokensLoaded() override;
564 567
565 // KeyedService implementation. This must be called exactly 568 // KeyedService implementation. This must be called exactly
566 // once (before this object is destroyed). 569 // once (before this object is destroyed).
567 void Shutdown() override; 570 void Shutdown() override;
568 571
569 browser_sync::FaviconCache* GetFaviconCache(); 572 sync_sessions::FaviconCache* GetFaviconCache();
570 573
571 // Overrides the NetworkResources used for Sync connections. 574 // Overrides the NetworkResources used for Sync connections.
572 // This function takes ownership of |network_resources|. 575 // This function takes ownership of |network_resources|.
573 void OverrideNetworkResourcesForTest( 576 void OverrideNetworkResourcesForTest(
574 std::unique_ptr<syncer::NetworkResources> network_resources); 577 std::unique_ptr<syncer::NetworkResources> network_resources);
575 578
576 virtual bool IsDataTypeControllerRunning(syncer::ModelType type) const; 579 virtual bool IsDataTypeControllerRunning(syncer::ModelType type) const;
577 580
578 // This triggers a Directory::SaveChanges() call on the sync thread. 581 // This triggers a Directory::SaveChanges() call on the sync thread.
579 // It should be used to persist data to disk when the process might be 582 // It should be used to persist data to disk when the process might be
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 GoogleServiceAuthError last_get_token_error_; 968 GoogleServiceAuthError last_get_token_error_;
966 base::Time next_token_request_time_; 969 base::Time next_token_request_time_;
967 970
968 // The gaia cookie manager. Used for monitoring cookie jar changes to detect 971 // The gaia cookie manager. Used for monitoring cookie jar changes to detect
969 // when the user signs out of the content area. 972 // when the user signs out of the content area.
970 GaiaCookieManagerService* const gaia_cookie_manager_service_; 973 GaiaCookieManagerService* const gaia_cookie_manager_service_;
971 974
972 std::unique_ptr<sync_driver::LocalDeviceInfoProvider> local_device_; 975 std::unique_ptr<sync_driver::LocalDeviceInfoProvider> local_device_;
973 976
974 // Locally owned SyncableService and ModelTypeService implementations. 977 // Locally owned SyncableService and ModelTypeService implementations.
975 std::unique_ptr<browser_sync::SessionsSyncManager> sessions_sync_manager_; 978 std::unique_ptr<sync_sessions::SessionsSyncManager> sessions_sync_manager_;
976 std::unique_ptr<sync_driver::DeviceInfoSyncService> device_info_sync_service_; 979 std::unique_ptr<sync_driver::DeviceInfoSyncService> device_info_sync_service_;
977 std::unique_ptr<sync_driver_v2::DeviceInfoService> device_info_service_; 980 std::unique_ptr<sync_driver_v2::DeviceInfoService> device_info_service_;
978 981
979 std::unique_ptr<syncer::NetworkResources> network_resources_; 982 std::unique_ptr<syncer::NetworkResources> network_resources_;
980 983
981 StartBehavior start_behavior_; 984 StartBehavior start_behavior_;
982 std::unique_ptr<browser_sync::StartupController> startup_controller_; 985 std::unique_ptr<browser_sync::StartupController> startup_controller_;
983 986
984 // The full path to the sync data directory. 987 // The full path to the sync data directory.
985 base::FilePath directory_path_; 988 base::FilePath directory_path_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 base::WeakPtrFactory<ProfileSyncService> weak_factory_; 1024 base::WeakPtrFactory<ProfileSyncService> weak_factory_;
1022 1025
1023 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1026 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1024 }; 1027 };
1025 1028
1026 bool ShouldShowActionOnUI( 1029 bool ShouldShowActionOnUI(
1027 const syncer::SyncProtocolError& error); 1030 const syncer::SyncProtocolError& error);
1028 1031
1029 1032
1030 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ 1033 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698