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

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

Issue 1251323003: Cleanup: give ChromeAppSorting a BrowserContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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 28 matching lines...) Expand all
39 ExtensionService* extension_service); 39 ExtensionService* extension_service);
40 40
41 ~ExtensionSyncService() override; 41 ~ExtensionSyncService() override;
42 42
43 // Convenience function to get the ExtensionSyncService for a BrowserContext. 43 // Convenience function to get the ExtensionSyncService for a BrowserContext.
44 static ExtensionSyncService* Get(content::BrowserContext* context); 44 static ExtensionSyncService* Get(content::BrowserContext* context);
45 45
46 // Notifies Sync that the given |extension| has been uninstalled. 46 // Notifies Sync that the given |extension| has been uninstalled.
47 void SyncUninstallExtension(const extensions::Extension& extension); 47 void SyncUninstallExtension(const extensions::Extension& extension);
48 48
49 void SyncOrderingChange(const std::string& extension_id);
50
51 // Notifies Sync (if needed) of a newly-installed extension or a change to 49 // Notifies Sync (if needed) of a newly-installed extension or a change to
52 // an existing extension. 50 // an existing extension.
53 void SyncExtensionChangeIfNeeded(const extensions::Extension& extension); 51 void SyncExtensionChangeIfNeeded(const extensions::Extension& extension);
54 52
55 // syncer::SyncableService implementation. 53 // syncer::SyncableService implementation.
56 syncer::SyncMergeResult MergeDataAndStartSyncing( 54 syncer::SyncMergeResult MergeDataAndStartSyncing(
57 syncer::ModelType type, 55 syncer::ModelType type,
58 const syncer::SyncDataList& initial_sync_data, 56 const syncer::SyncDataList& initial_sync_data,
59 scoped_ptr<syncer::SyncChangeProcessor> sync_processor, 57 scoped_ptr<syncer::SyncChangeProcessor> sync_processor,
60 scoped_ptr<syncer::SyncErrorFactory> sync_error_factory) override; 58 scoped_ptr<syncer::SyncErrorFactory> sync_error_factory) override;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 124
127 // Run()ning tells sync to try and start soon, because syncable changes 125 // Run()ning tells sync to try and start soon, because syncable changes
128 // have started happening. It will cause sync to call us back 126 // have started happening. It will cause sync to call us back
129 // asynchronously via MergeDataAndStartSyncing as soon as possible. 127 // asynchronously via MergeDataAndStartSyncing as soon as possible.
130 syncer::SyncableService::StartSyncFlare flare_; 128 syncer::SyncableService::StartSyncFlare flare_;
131 129
132 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService); 130 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService);
133 }; 131 };
134 132
135 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ 133 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/chrome_extensions_browser_client.cc ('k') | chrome/browser/extensions/extension_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698