blob: b42f21f1d2995c911013392ae3e2b09714c342c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FEED_LOADER_OBSERVER_H_
#define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FEED_LOADER_OBSERVER_H_
#include <string>
class FilePath;
namespace drive {
// Interface for classes that need to observe events from DriveFeedLoader.
// All events are notified on UI thread.
class DriveFeedLoaderObserver {
public:
// Triggered when a content of a directory has been changed.
// |directory_path| is a virtual directory path representing the
// changed directory.
virtual void OnDirectoryChanged(const FilePath& directory_path) {
}
// Triggered when a document feed is fetched. |num_accumulated_entries|
// tells the number of entries fetched so far.
virtual void OnDocumentFeedFetched(int num_accumulated_entries) {
}
// Triggered when the feed from the server is loaded.
virtual void OnFeedFromServerLoaded() {
}
protected:
virtual ~DriveFeedLoaderObserver() {}
};
} // namespace drive
#endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FEED_LOADER_OBSERVER_H_
|