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

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 10701085: Revert "Revert 142517 - [Sync] Refactor sync configuration logic." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile/test Created 8 years, 5 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 | Annotate | Revision Log
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 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 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 #include "chrome/browser/sync/invalidations/invalidator_storage.h" 28 #include "chrome/browser/sync/invalidations/invalidator_storage.h"
29 #include "chrome/browser/sync/profile_sync_service_observer.h" 29 #include "chrome/browser/sync/profile_sync_service_observer.h"
30 #include "chrome/browser/sync/sync_prefs.h" 30 #include "chrome/browser/sync/sync_prefs.h"
31 #include "chrome/common/net/gaia/google_service_auth_error.h" 31 #include "chrome/common/net/gaia/google_service_auth_error.h"
32 #include "content/public/browser/notification_observer.h" 32 #include "content/public/browser/notification_observer.h"
33 #include "content/public/browser/notification_registrar.h" 33 #include "content/public/browser/notification_registrar.h"
34 #include "content/public/browser/notification_types.h" 34 #include "content/public/browser/notification_types.h"
35 #include "googleurl/src/gurl.h" 35 #include "googleurl/src/gurl.h"
36 #include "sync/internal_api/public/base/model_type.h" 36 #include "sync/internal_api/public/base/model_type.h"
37 #include "sync/internal_api/public/engine/model_safe_worker.h" 37 #include "sync/internal_api/public/engine/model_safe_worker.h"
38 #include "sync/internal_api/public/sync_manager_factory.h"
38 #include "sync/internal_api/public/util/experiments.h" 39 #include "sync/internal_api/public/util/experiments.h"
39 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" 40 #include "sync/internal_api/public/util/unrecoverable_error_handler.h"
40 #include "sync/js/sync_js_controller.h" 41 #include "sync/js/sync_js_controller.h"
41 42
42 class Profile; 43 class Profile;
43 class ProfileSyncComponentsFactory; 44 class ProfileSyncComponentsFactory;
44 class SigninManager; 45 class SigninManager;
45 class SyncGlobalError; 46 class SyncGlobalError;
46 47
47 namespace browser_sync { 48 namespace browser_sync {
48 class BackendMigrator; 49 class BackendMigrator;
49 class ChangeProcessor; 50 class ChangeProcessor;
50 class DataTypeManager; 51 class DataTypeManager;
51 class JsController; 52 class JsController;
52 class SessionModelAssociator; 53 class SessionModelAssociator;
54 class SyncManagerFactory;
55
53 namespace sessions { class SyncSessionSnapshot; } 56 namespace sessions { class SyncSessionSnapshot; }
54 } 57 }
55 58
56 namespace syncer { 59 namespace syncer {
57 class BaseTransaction; 60 class BaseTransaction;
58 struct SyncCredentials; 61 struct SyncCredentials;
59 struct UserShare; 62 struct UserShare;
60 } 63 }
61 64
62 namespace sync_pb { 65 namespace sync_pb {
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 789
787 browser_sync::DataTypeManager::ConfigureStatus configure_status_; 790 browser_sync::DataTypeManager::ConfigureStatus configure_status_;
788 791
789 // If |true|, there is setup UI visible so we should not start downloading 792 // If |true|, there is setup UI visible so we should not start downloading
790 // data types. 793 // data types.
791 bool setup_in_progress_; 794 bool setup_in_progress_;
792 795
793 // The set of currently enabled sync experiments. 796 // The set of currently enabled sync experiments.
794 syncer::Experiments current_experiments; 797 syncer::Experiments current_experiments;
795 798
799 // Factory the backend will use to build the sync manager.
800 syncer::SyncManagerFactory sync_manager_factory_;
801
796 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 802 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
797 }; 803 };
798 804
799 bool ShouldShowActionOnUI( 805 bool ShouldShowActionOnUI(
800 const syncer::SyncProtocolError& error); 806 const syncer::SyncProtocolError& error);
801 807
802 808
803 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 809 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698