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

Side by Side Diff: chrome/browser/sync_file_system/change_observer_interface.h

Issue 11234025: Add skeleton code to wire Local- and Remote- file sync services (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local_change_processor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698