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

Side by Side Diff: chrome/browser/extensions/extension_sync_service.h

Issue 229553003: Implement syncing of bookmark apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 std::vector<extensions::AppSyncData> GetAppSyncDataList() const; 87 std::vector<extensions::AppSyncData> GetAppSyncDataList() const;
88 88
89 // Applies the change specified passed in by either ExtensionSyncData or 89 // Applies the change specified passed in by either ExtensionSyncData or
90 // AppSyncData to the current system. 90 // AppSyncData to the current system.
91 // Returns false if the changes were not completely applied and were added 91 // Returns false if the changes were not completely applied and were added
92 // to the pending list to be tried again. 92 // to the pending list to be tried again.
93 bool ProcessExtensionSyncData( 93 bool ProcessExtensionSyncData(
94 const extensions::ExtensionSyncData& extension_sync_data); 94 const extensions::ExtensionSyncData& extension_sync_data);
95 bool ProcessAppSyncData(const extensions::AppSyncData& app_sync_data); 95 bool ProcessAppSyncData(const extensions::AppSyncData& app_sync_data);
96 96
97 // Processes the bookmark app specific parts of an AppSyncData.
98 void ProcessBookmarkAppSyncData(const extensions::AppSyncData& app_sync_data);
99
97 syncer::SyncChange PrepareToSyncUninstallExtension( 100 syncer::SyncChange PrepareToSyncUninstallExtension(
98 const extensions::Extension* extension, 101 const extensions::Extension* extension,
99 bool extensions_ready); 102 bool extensions_ready);
100 void ProcessSyncUninstallExtension(const std::string& extension_id, 103 void ProcessSyncUninstallExtension(const std::string& extension_id,
101 const syncer::SyncChange& sync_change); 104 const syncer::SyncChange& sync_change);
102 105
103 void SyncEnableExtension(const extensions::Extension& extension); 106 void SyncEnableExtension(const extensions::Extension& extension);
104 void SyncDisableExtension(const extensions::Extension& extension); 107 void SyncDisableExtension(const extensions::Extension& extension);
105 108
106 void SyncOrderingChange(const std::string& extension_id); 109 void SyncOrderingChange(const std::string& extension_id);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 149
147 // Run()ning tells sync to try and start soon, because syncable changes 150 // Run()ning tells sync to try and start soon, because syncable changes
148 // have started happening. It will cause sync to call us back 151 // have started happening. It will cause sync to call us back
149 // asynchronously via MergeDataAndStartSyncing as soon as possible. 152 // asynchronously via MergeDataAndStartSyncing as soon as possible.
150 syncer::SyncableService::StartSyncFlare flare_; 153 syncer::SyncableService::StartSyncFlare flare_;
151 154
152 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService); 155 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService);
153 }; 156 };
154 157
155 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ 158 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/bookmark_app_helper_unittest.cc ('k') | chrome/browser/extensions/extension_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698