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

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

Issue 551843003: Persist Directory to disk when the app is backgrounded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use SyncBackendHost to get to the sync thread. Created 6 years, 3 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
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 BrowsingDataRemover::Observer* observer); 787 BrowsingDataRemover::Observer* observer);
788 void SetClearingBrowseringDataForTesting(base::Callback< 788 void SetClearingBrowseringDataForTesting(base::Callback<
789 void(BrowsingDataRemover::Observer*, Profile*, base::Time, base::Time)> 789 void(BrowsingDataRemover::Observer*, Profile*, base::Time, base::Time)>
790 c); 790 c);
791 791
792 // Return the base URL of the Sync Server. 792 // Return the base URL of the Sync Server.
793 static GURL GetSyncServiceURL(const base::CommandLine& command_line); 793 static GURL GetSyncServiceURL(const base::CommandLine& command_line);
794 794
795 base::Time GetDeviceBackupTimeForTesting() const; 795 base::Time GetDeviceBackupTimeForTesting() const;
796 796
797 void FlushDirectory();
nyquist 2014/09/10 17:43:09 Add a comment about what this ends up doing. In wh
maniscalco 2014/09/10 17:49:03 Not const like the other FlushDirectory methods?
maxbogue 2014/09/10 20:11:02 Done.
maxbogue 2014/09/10 20:11:02 Done.
798
797 protected: 799 protected:
798 // Helper to configure the priority data types. 800 // Helper to configure the priority data types.
799 void ConfigurePriorityDataTypes(); 801 void ConfigurePriorityDataTypes();
800 802
801 // Helper to install and configure a data type manager. 803 // Helper to install and configure a data type manager.
802 void ConfigureDataTypeManager(); 804 void ConfigureDataTypeManager();
803 805
804 // Shuts down the backend sync components. 806 // Shuts down the backend sync components.
805 // |reason| dictates if syncing is being disabled or not, and whether 807 // |reason| dictates if syncing is being disabled or not, and whether
806 // to claim ownership of sync thread from backend. 808 // to claim ownership of sync thread from backend.
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 BrowsingDataRemover::Observer* browsing_data_remover_observer_; 1173 BrowsingDataRemover::Observer* browsing_data_remover_observer_;
1172 1174
1173 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1175 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1174 }; 1176 };
1175 1177
1176 bool ShouldShowActionOnUI( 1178 bool ShouldShowActionOnUI(
1177 const syncer::SyncProtocolError& error); 1179 const syncer::SyncProtocolError& error);
1178 1180
1179 1181
1180 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1182 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698