Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SYNC_API_SYNC_CHANGE_PROCESSOR_H_ | |
| 6 #define CHROME_BROWSER_SYNC_API_SYNC_CHANGE_PROCESSOR_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <vector> | |
| 10 | |
| 11 class SyncChange; | |
| 12 | |
| 13 typedef std::vector<SyncChange> SyncChangeList; | |
| 14 | |
| 15 // An interface for services that handle receiving SyncChanges. | |
| 16 class SyncChangeProcessor { | |
| 17 public: | |
| 18 virtual ~SyncChangeProcessor() {} | |
|
akalin
2011/05/20 00:19:39
make destructor protected (nothing should delete v
Nicolas Zea
2011/05/20 02:00:28
Done.
| |
| 19 | |
| 20 // Process a list of SyncChanges. | |
| 21 virtual void ProcessSyncChanges(const SyncChangeList& change_list) = 0; | |
| 22 }; | |
| 23 | |
| 24 | |
| 25 #endif // CHROME_BROWSER_SYNC_API_SYNC_CHANGE_PROCESSOR_H_ | |
| OLD | NEW |