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

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

Issue 8596017: sync: rename ProfileSyncFactory to ProfileSyncComponentsFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 20 matching lines...) Expand all
31 #include "chrome/browser/sync/sync_prefs.h" 31 #include "chrome/browser/sync/sync_prefs.h"
32 #include "chrome/browser/sync/sync_setup_wizard.h" 32 #include "chrome/browser/sync/sync_setup_wizard.h"
33 #include "chrome/browser/sync/unrecoverable_error_handler.h" 33 #include "chrome/browser/sync/unrecoverable_error_handler.h"
34 #include "chrome/common/net/gaia/google_service_auth_error.h" 34 #include "chrome/common/net/gaia/google_service_auth_error.h"
35 #include "content/public/browser/notification_observer.h" 35 #include "content/public/browser/notification_observer.h"
36 #include "content/public/browser/notification_registrar.h" 36 #include "content/public/browser/notification_registrar.h"
37 #include "content/public/browser/notification_types.h" 37 #include "content/public/browser/notification_types.h"
38 #include "googleurl/src/gurl.h" 38 #include "googleurl/src/gurl.h"
39 39
40 class Profile; 40 class Profile;
41 class ProfileSyncFactory; 41 class ProfileSyncComponentsFactory;
42 class SigninManager; 42 class SigninManager;
43 class SyncGlobalError; 43 class SyncGlobalError;
44 44
45 namespace browser_sync { 45 namespace browser_sync {
46 class BackendMigrator; 46 class BackendMigrator;
47 class ChangeProcessor; 47 class ChangeProcessor;
48 class DataTypeManager; 48 class DataTypeManager;
49 class JsController; 49 class JsController;
50 class SessionModelAssociator; 50 class SessionModelAssociator;
51 namespace sessions { struct SyncSessionSnapshot; } 51 namespace sessions { struct SyncSessionSnapshot; }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 CLEAR_CLEARING = 2, 141 CLEAR_CLEARING = 2,
142 CLEAR_FAILED = 3, 142 CLEAR_FAILED = 3,
143 CLEAR_SUCCEEDED = 4, 143 CLEAR_SUCCEEDED = 4,
144 }; 144 };
145 145
146 // Default sync server URL. 146 // Default sync server URL.
147 static const char* kSyncServerUrl; 147 static const char* kSyncServerUrl;
148 // Sync server URL for dev channel users 148 // Sync server URL for dev channel users
149 static const char* kDevServerUrl; 149 static const char* kDevServerUrl;
150 150
151 ProfileSyncService(ProfileSyncFactory* factory, 151 ProfileSyncService(ProfileSyncComponentsFactory* factory,
152 Profile* profile, 152 Profile* profile,
153 SigninManager* signin, // Service takes ownership. 153 SigninManager* signin, // Service takes ownership.
154 const std::string& cros_user); 154 const std::string& cros_user);
155 virtual ~ProfileSyncService(); 155 virtual ~ProfileSyncService();
156 156
157 // Initializes the object. This should be called every time an object of this 157 // Initializes the object. This should be called every time an object of this
158 // class is constructed. 158 // class is constructed.
159 void Initialize(); 159 void Initialize();
160 160
161 void RegisterAuthNotifications(); 161 void RegisterAuthNotifications();
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 virtual void ReconfigureDatatypeManager(); 592 virtual void ReconfigureDatatypeManager();
593 593
594 594
595 // Time at which we begin an attempt a GAIA authorization. 595 // Time at which we begin an attempt a GAIA authorization.
596 base::TimeTicks auth_start_time_; 596 base::TimeTicks auth_start_time_;
597 597
598 // Time at which error UI is presented for the new tab page. 598 // Time at which error UI is presented for the new tab page.
599 base::TimeTicks auth_error_time_; 599 base::TimeTicks auth_error_time_;
600 600
601 // Factory used to create various dependent objects. 601 // Factory used to create various dependent objects.
602 ProfileSyncFactory* factory_; 602 ProfileSyncComponentsFactory* factory_;
603 603
604 // The profile whose data we are synchronizing. 604 // The profile whose data we are synchronizing.
605 Profile* profile_; 605 Profile* profile_;
606 606
607 // The class that handles getting, setting, and persisting sync 607 // The class that handles getting, setting, and persisting sync
608 // preferences. 608 // preferences.
609 browser_sync::SyncPrefs sync_prefs_; 609 browser_sync::SyncPrefs sync_prefs_;
610 610
611 // Email for the ChromiumOS user, if we're running under ChromiumOS. 611 // Email for the ChromiumOS user, if we're running under ChromiumOS.
612 std::string cros_user_; 612 std::string cros_user_;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 FailedDatatypesHandler failed_datatypes_handler_; 713 FailedDatatypesHandler failed_datatypes_handler_;
714 714
715 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 715 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
716 }; 716 };
717 717
718 bool ShouldShowActionOnUI( 718 bool ShouldShowActionOnUI(
719 const browser_sync::SyncProtocolError& error); 719 const browser_sync::SyncProtocolError& error);
720 720
721 721
722 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 722 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_factory_mock.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698