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

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

Issue 666153002: Standardize usage of virtual/override/final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 25 matching lines...) Expand all
36 class SyncErrorFactory; 36 class SyncErrorFactory;
37 } 37 }
38 38
39 class ExtensionSyncService : public syncer::SyncableService, 39 class ExtensionSyncService : public syncer::SyncableService,
40 public KeyedService { 40 public KeyedService {
41 public: 41 public:
42 ExtensionSyncService(Profile* profile, 42 ExtensionSyncService(Profile* profile,
43 extensions::ExtensionPrefs* extension_prefs, 43 extensions::ExtensionPrefs* extension_prefs,
44 ExtensionService* extension_service); 44 ExtensionService* extension_service);
45 45
46 virtual ~ExtensionSyncService(); 46 ~ExtensionSyncService() override;
47 47
48 // Convenience function to get the ExtensionSyncService for a Profile. 48 // Convenience function to get the ExtensionSyncService for a Profile.
49 static ExtensionSyncService* Get(Profile* profile); 49 static ExtensionSyncService* Get(Profile* profile);
50 50
51 const extensions::ExtensionPrefs& extension_prefs() const { 51 const extensions::ExtensionPrefs& extension_prefs() const {
52 return *extension_prefs_; 52 return *extension_prefs_;
53 } 53 }
54 54
55 // Notifies Sync (if needed) of a newly-installed extension or a change to 55 // Notifies Sync (if needed) of a newly-installed extension or a change to
56 // an existing extension. 56 // an existing extension.
57 virtual void SyncExtensionChangeIfNeeded( 57 virtual void SyncExtensionChangeIfNeeded(
58 const extensions::Extension& extension); 58 const extensions::Extension& extension);
59 59
60 // syncer::SyncableService implementation. 60 // syncer::SyncableService implementation.
61 virtual syncer::SyncMergeResult MergeDataAndStartSyncing( 61 syncer::SyncMergeResult MergeDataAndStartSyncing(
62 syncer::ModelType type, 62 syncer::ModelType type,
63 const syncer::SyncDataList& initial_sync_data, 63 const syncer::SyncDataList& initial_sync_data,
64 scoped_ptr<syncer::SyncChangeProcessor> sync_processor, 64 scoped_ptr<syncer::SyncChangeProcessor> sync_processor,
65 scoped_ptr<syncer::SyncErrorFactory> sync_error_factory) override; 65 scoped_ptr<syncer::SyncErrorFactory> sync_error_factory) override;
66 virtual void StopSyncing(syncer::ModelType type) override; 66 void StopSyncing(syncer::ModelType type) override;
67 virtual syncer::SyncDataList GetAllSyncData( 67 syncer::SyncDataList GetAllSyncData(syncer::ModelType type) const override;
68 syncer::ModelType type) const override; 68 syncer::SyncError ProcessSyncChanges(
69 virtual syncer::SyncError ProcessSyncChanges(
70 const tracked_objects::Location& from_here, 69 const tracked_objects::Location& from_here,
71 const syncer::SyncChangeList& change_list) override; 70 const syncer::SyncChangeList& change_list) override;
72 71
73 // Gets the sync data for the given extension, assuming that the extension is 72 // Gets the sync data for the given extension, assuming that the extension is
74 // syncable. 73 // syncable.
75 extensions::ExtensionSyncData GetExtensionSyncData( 74 extensions::ExtensionSyncData GetExtensionSyncData(
76 const extensions::Extension& extension) const; 75 const extensions::Extension& extension) const;
77 76
78 // Gets the sync data for the given app, assuming that the app is 77 // Gets the sync data for the given app, assuming that the app is
79 // syncable. 78 // syncable.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 150
152 // Run()ning tells sync to try and start soon, because syncable changes 151 // Run()ning tells sync to try and start soon, because syncable changes
153 // have started happening. It will cause sync to call us back 152 // have started happening. It will cause sync to call us back
154 // asynchronously via MergeDataAndStartSyncing as soon as possible. 153 // asynchronously via MergeDataAndStartSyncing as soon as possible.
155 syncer::SyncableService::StartSyncFlare flare_; 154 syncer::SyncableService::StartSyncFlare flare_;
156 155
157 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService); 156 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService);
158 }; 157 };
159 158
160 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ 159 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_sync_bundle.h ('k') | chrome/browser/extensions/extension_sync_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698