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

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

Issue 12033093: sync: Implementation of Priority Preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Attempting to parametrize the PSS pref test fixture to also test priority prefs. Created 7 years, 9 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 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 607
608 // Simulate an incoming notification for the given id and payload. 608 // Simulate an incoming notification for the given id and payload.
609 void EmitInvalidationForTest( 609 void EmitInvalidationForTest(
610 const invalidation::ObjectId& id, 610 const invalidation::ObjectId& id,
611 const std::string& payload); 611 const std::string& payload);
612 612
613 protected: 613 protected:
614 // Used by test classes that derive from ProfileSyncService. 614 // Used by test classes that derive from ProfileSyncService.
615 virtual browser_sync::SyncBackendHost* GetBackendForTest(); 615 virtual browser_sync::SyncBackendHost* GetBackendForTest();
616 616
617 // Helper to configure the priority data types.
618 void ConfigurePriorityDataTypes();
619
617 // Helper to install and configure a data type manager. 620 // Helper to install and configure a data type manager.
618 void ConfigureDataTypeManager(); 621 void ConfigureDataTypeManager();
619 622
620 // Starts up the backend sync components. 623 // Starts up the backend sync components.
621 virtual void StartUp(); 624 virtual void StartUp();
622 // Shuts down the backend sync components. 625 // Shuts down the backend sync components.
623 // |sync_disabled| indicates if syncing is being disabled or not. 626 // |sync_disabled| indicates if syncing is being disabled or not.
624 void ShutdownImpl(bool sync_disabled); 627 void ShutdownImpl(bool sync_disabled);
625 628
626 // Return SyncCredentials from the TokenService. 629 // Return SyncCredentials from the TokenService.
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; 909 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_;
907 910
908 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 911 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
909 }; 912 };
910 913
911 bool ShouldShowActionOnUI( 914 bool ShouldShowActionOnUI(
912 const syncer::SyncProtocolError& error); 915 const syncer::SyncProtocolError& error);
913 916
914 917
915 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 918 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698