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

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: rebase and cleanup 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 #include <utility> 10 #include <utility>
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 616
617 // Simulate an incoming notification for the given id and payload. 617 // Simulate an incoming notification for the given id and payload.
618 void EmitInvalidationForTest( 618 void EmitInvalidationForTest(
619 const invalidation::ObjectId& id, 619 const invalidation::ObjectId& id,
620 const std::string& payload); 620 const std::string& payload);
621 621
622 protected: 622 protected:
623 // Used by test classes that derive from ProfileSyncService. 623 // Used by test classes that derive from ProfileSyncService.
624 virtual browser_sync::SyncBackendHost* GetBackendForTest(); 624 virtual browser_sync::SyncBackendHost* GetBackendForTest();
625 625
626 // Helper to configure the priority data types.
627 void ConfigurePriorityDataTypes();
628
626 // Helper to install and configure a data type manager. 629 // Helper to install and configure a data type manager.
627 void ConfigureDataTypeManager(); 630 void ConfigureDataTypeManager();
628 631
629 // Shuts down the backend sync components. 632 // Shuts down the backend sync components.
630 // |sync_disabled| indicates if syncing is being disabled or not. 633 // |sync_disabled| indicates if syncing is being disabled or not.
631 void ShutdownImpl(bool sync_disabled); 634 void ShutdownImpl(bool sync_disabled);
632 635
633 // Return SyncCredentials from the TokenService. 636 // Return SyncCredentials from the TokenService.
634 syncer::SyncCredentials GetCredentials(); 637 syncer::SyncCredentials GetCredentials();
635 638
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; 931 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_;
929 932
930 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 933 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
931 }; 934 };
932 935
933 bool ShouldShowActionOnUI( 936 bool ShouldShowActionOnUI(
934 const syncer::SyncProtocolError& error); 937 const syncer::SyncProtocolError& error);
935 938
936 939
937 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 940 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698