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

Side by Side Diff: chrome/browser/chromeos/drive/drive_feed_loader_observer.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_CHROMEOS_DRIVE_DRIVE_FEED_LOADER_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FEED_LOADER_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FEED_LOADER_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FEED_LOADER_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace base {
10 class FilePath; 11 class FilePath;
12 }
11 13
12 namespace drive { 14 namespace drive {
13 15
14 // Interface for classes that need to observe events from DriveFeedLoader. 16 // Interface for classes that need to observe events from DriveFeedLoader.
15 // All events are notified on UI thread. 17 // All events are notified on UI thread.
16 class DriveFeedLoaderObserver { 18 class DriveFeedLoaderObserver {
17 public: 19 public:
18 // Triggered when a content of a directory has been changed. 20 // Triggered when a content of a directory has been changed.
19 // |directory_path| is a virtual directory path representing the 21 // |directory_path| is a virtual directory path representing the
20 // changed directory. 22 // changed directory.
21 virtual void OnDirectoryChanged(const FilePath& directory_path) { 23 virtual void OnDirectoryChanged(const base::FilePath& directory_path) {
22 } 24 }
23 25
24 // Triggered when a resource list is fetched. |num_accumulated_entries| 26 // Triggered when a resource list is fetched. |num_accumulated_entries|
25 // tells the number of entries fetched so far. 27 // tells the number of entries fetched so far.
26 virtual void OnResourceListFetched(int num_accumulated_entries) { 28 virtual void OnResourceListFetched(int num_accumulated_entries) {
27 } 29 }
28 30
29 // Triggered when the feed from the server is loaded. 31 // Triggered when the feed from the server is loaded.
30 virtual void OnFeedFromServerLoaded() { 32 virtual void OnFeedFromServerLoaded() {
31 } 33 }
32 34
33 protected: 35 protected:
34 virtual ~DriveFeedLoaderObserver() {} 36 virtual ~DriveFeedLoaderObserver() {}
35 }; 37 };
36 38
37 } // namespace drive 39 } // namespace drive
38 40
39 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FEED_LOADER_OBSERVER_H_ 41 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FEED_LOADER_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/customization_document.h ('k') | chrome/browser/chromeos/drive/drive_file_system_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698