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 "chrome/browser/chromeos/drive/file_errors.h"
9
10namespace base {
11class FilePath;
12}
13
14namespace drive {
15
16// Interface for classes that need to observe events from classes implementing
17// FileSystemInterface.
18// All events are notified on UI thread.
19class FileSystemObserver {
20 public:
21  // Triggered when a content of a directory has been changed.
22  // |directory_path| is a virtual directory path (/drive/...) representing
23  // changed directory.
24  virtual void OnDirectoryChanged(const base::FilePath& directory_path) {}
25
26 protected:
27  virtual ~FileSystemObserver() {}
28};
29
30}  // namespace drive
31
32#endif  // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OBSERVER_H_
33