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

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

Issue 1414203016: [Sync] Introduce GmsCoreSyncListener. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move GetCustomPassphraseKey declaration. Created 5 years, 1 month 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 // Returns the current mode the backend is in. 559 // Returns the current mode the backend is in.
560 BackendMode backend_mode() const; 560 BackendMode backend_mode() const;
561 561
562 base::Time GetDeviceBackupTimeForTesting() const; 562 base::Time GetDeviceBackupTimeForTesting() const;
563 563
564 // This triggers a Directory::SaveChanges() call on the sync thread. 564 // This triggers a Directory::SaveChanges() call on the sync thread.
565 // It should be used to persist data to disk when the process might be 565 // It should be used to persist data to disk when the process might be
566 // killed in the near future. 566 // killed in the near future.
567 void FlushDirectory() const; 567 void FlushDirectory() const;
568 568
569 // Returns a serialized NigoriKey proto generated from the bootstrap token in
570 // SyncPrefs. Will return the empty string if no bootstrap token exists.
571 std::string GetCustomPassphraseKey() const;
572
569 // Needed to test whether the directory is deleted properly. 573 // Needed to test whether the directory is deleted properly.
570 base::FilePath GetDirectoryPathForTest() const; 574 base::FilePath GetDirectoryPathForTest() const;
571 575
572 // Sometimes we need to wait for tasks on the sync thread in tests. 576 // Sometimes we need to wait for tasks on the sync thread in tests.
573 base::MessageLoop* GetSyncLoopForTest() const; 577 base::MessageLoop* GetSyncLoopForTest() const;
574 578
575 // Triggers sync cycle with request to update specified |types|. 579 // Triggers sync cycle with request to update specified |types|.
576 void RefreshTypesForTest(syncer::ModelTypeSet types); 580 void RefreshTypesForTest(syncer::ModelTypeSet types);
577 581
578 protected: 582 protected:
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; 1011 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_;
1008 1012
1009 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1013 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1010 }; 1014 };
1011 1015
1012 bool ShouldShowActionOnUI( 1016 bool ShouldShowActionOnUI(
1013 const syncer::SyncProtocolError& error); 1017 const syncer::SyncProtocolError& error);
1014 1018
1015 1019
1016 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ 1020 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698