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

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

Issue 1314803004: Move chrome/browser/chromeos/drive/file_system.cc (+deps) into components/drive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 3 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
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_CHROMEOS_DRIVE_FILE_SYSTEM_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OBSERVER_H_
7
8 #include "components/drive/file_errors.h"
9 #include "components/drive/file_system/operation_delegate.h"
10
11 namespace base {
12 class FilePath;
13 }
14
15 namespace drive {
16
17 class FileChange;
18
19 // Interface for classes that need to observe events from classes implementing
20 // FileSystemInterface.
21 // All events are notified on UI thread.
22 class FileSystemObserver {
23 public:
24 // Triggered when a content of a directory has been changed.
25 // |directory_path| is a virtual directory path (/drive/...) representing
26 // changed directory.
27 virtual void OnDirectoryChanged(const base::FilePath& directory_path) {}
28 virtual void OnFileChanged(const FileChange& file_change) {}
29
30 // Triggared when a specific drive error occurred.
31 // |type| is a type of the error. |file_name| is a virtual path of the entry.
32 virtual void OnDriveSyncError(file_system::DriveSyncErrorType type,
33 const base::FilePath& file_path) {}
34
35 protected:
36 virtual ~FileSystemObserver() {}
37 };
38
39 } // namespace drive
40
41 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system.cc ('k') | chrome/browser/chromeos/drive/file_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698