| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_API_SYNCED_NOTIFICATIONS_PRIVATE_SYNCED_NOTIFI
CATIONS_SHIM_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYNCED_NOTIFICATIONS_PRIVATE_SYNCED_NOTIFI
CATIONS_SHIM_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_SYNCED_NOTIFICATIONS_PRIVATE_SYNCED_NOTIFI
CATIONS_SHIM_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SYNCED_NOTIFICATIONS_PRIVATE_SYNCED_NOTIFI
CATIONS_SHIM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 explicit SyncedNotificationsShim(const EventLauncher& event_launcher, | 26 explicit SyncedNotificationsShim(const EventLauncher& event_launcher, |
| 27 const base::Closure& refresh_request); | 27 const base::Closure& refresh_request); |
| 28 virtual ~SyncedNotificationsShim(); | 28 virtual ~SyncedNotificationsShim(); |
| 29 | 29 |
| 30 // SyncableService interface. | 30 // SyncableService interface. |
| 31 virtual syncer::SyncMergeResult MergeDataAndStartSyncing( | 31 virtual syncer::SyncMergeResult MergeDataAndStartSyncing( |
| 32 syncer::ModelType type, | 32 syncer::ModelType type, |
| 33 const syncer::SyncDataList& initial_sync_data, | 33 const syncer::SyncDataList& initial_sync_data, |
| 34 scoped_ptr<syncer::SyncChangeProcessor> sync_processor, | 34 scoped_ptr<syncer::SyncChangeProcessor> sync_processor, |
| 35 scoped_ptr<syncer::SyncErrorFactory> error_handler) OVERRIDE; | 35 scoped_ptr<syncer::SyncErrorFactory> error_handler) override; |
| 36 virtual void StopSyncing(syncer::ModelType type) OVERRIDE; | 36 virtual void StopSyncing(syncer::ModelType type) override; |
| 37 virtual syncer::SyncError ProcessSyncChanges( | 37 virtual syncer::SyncError ProcessSyncChanges( |
| 38 const tracked_objects::Location& from_here, | 38 const tracked_objects::Location& from_here, |
| 39 const syncer::SyncChangeList& change_list) OVERRIDE; | 39 const syncer::SyncChangeList& change_list) override; |
| 40 virtual syncer::SyncDataList GetAllSyncData( | 40 virtual syncer::SyncDataList GetAllSyncData( |
| 41 syncer::ModelType type) const OVERRIDE; | 41 syncer::ModelType type) const override; |
| 42 | 42 |
| 43 // JS interface methods (see synced_notifications_private.h). | 43 // JS interface methods (see synced_notifications_private.h). |
| 44 bool GetInitialData( | 44 bool GetInitialData( |
| 45 extensions::api::synced_notifications_private::SyncDataType data_type, | 45 extensions::api::synced_notifications_private::SyncDataType data_type, |
| 46 std::vector< | 46 std::vector< |
| 47 linked_ptr<extensions::api::synced_notifications_private::SyncData> >* | 47 linked_ptr<extensions::api::synced_notifications_private::SyncData> >* |
| 48 js_data_list) const; | 48 js_data_list) const; |
| 49 bool UpdateNotification(const std::string& changed_notification); | 49 bool UpdateNotification(const std::string& changed_notification); |
| 50 bool SetRenderContext( | 50 bool SetRenderContext( |
| 51 extensions::api::synced_notifications_private::RefreshRequest | 51 extensions::api::synced_notifications_private::RefreshRequest |
| (...skipping 11 matching lines...) Expand all Loading... |
| 63 base::Closure refresh_request_; | 63 base::Closure refresh_request_; |
| 64 | 64 |
| 65 // The sync change processors, initialized via MergeDataAndStartSyncing. | 65 // The sync change processors, initialized via MergeDataAndStartSyncing. |
| 66 scoped_ptr<syncer::SyncChangeProcessor> notifications_change_processor_; | 66 scoped_ptr<syncer::SyncChangeProcessor> notifications_change_processor_; |
| 67 scoped_ptr<syncer::SyncChangeProcessor> app_info_change_processor_; | 67 scoped_ptr<syncer::SyncChangeProcessor> app_info_change_processor_; |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(SyncedNotificationsShim); | 69 DISALLOW_COPY_AND_ASSIGN(SyncedNotificationsShim); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNCED_NOTIFICATIONS_PRIVATE_SYNCED_NOT
IFICATIONS_SHIM_H_ | 72 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNCED_NOTIFICATIONS_PRIVATE_SYNCED_NOT
IFICATIONS_SHIM_H_ |
| OLD | NEW |