OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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_FILE_SYSTEM_CHANGE_OBSERVER_INTERFACE_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_CHANGE_OBSERVER_INTERFACE_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 |
| 10 namespace sync_file_system { |
| 11 |
| 12 class LocalChangeObserver { |
| 13 public: |
| 14 LocalChangeObserver() {} |
| 15 virtual ~LocalChangeObserver() {} |
| 16 |
| 17 // This is called when there're one ore more local changes are available. |
| 18 // |pending_changes_hint| indicates the pending queue length to help sync |
| 19 // scheduling but the value may not be accurately reflect the real-time |
| 20 // value. |
| 21 virtual void OnLocalChangeAvailable(int64 pending_changes_hint) = 0; |
| 22 |
| 23 private: |
| 24 DISALLOW_COPY_AND_ASSIGN(LocalChangeObserver); |
| 25 }; |
| 26 |
| 27 class RemoteChangeObserver { |
| 28 public: |
| 29 RemoteChangeObserver() {} |
| 30 virtual ~RemoteChangeObserver() {} |
| 31 |
| 32 // This is called when there're one ore more remote changes are available. |
| 33 // |pending_changes_hint| indicates the pending queue length to help sync |
| 34 // scheduling but the value may not be accurately reflect the real-time |
| 35 // value. |
| 36 virtual void OnRemoteChangeAvailable(int64 pending_changes_hint) = 0; |
| 37 private: |
| 38 DISALLOW_COPY_AND_ASSIGN(RemoteChangeObserver); |
| 39 }; |
| 40 |
| 41 } // namespace sync_file_system |
| 42 |
| 43 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_CHANGE_OBSERVER_INTERFACE_H_ |
OLD | NEW |