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

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

Issue 137903002: Files.app: Add a drive sync error event to the fileBrowserPrivate API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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_FILE_SYSTEM_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OBSERVER_H_
7 7
8 #include "chrome/browser/chromeos/drive/file_errors.h" 8 #include "chrome/browser/chromeos/drive/file_errors.h"
9 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h"
9 10
10 namespace base { 11 namespace base {
11 class FilePath; 12 class FilePath;
12 } 13 }
13 14
14 namespace drive { 15 namespace drive {
15 16
16 // Interface for classes that need to observe events from classes implementing 17 // Interface for classes that need to observe events from classes implementing
17 // FileSystemInterface. 18 // FileSystemInterface.
18 // All events are notified on UI thread. 19 // All events are notified on UI thread.
19 class FileSystemObserver { 20 class FileSystemObserver {
20 public: 21 public:
21 // Triggered when a content of a directory has been changed. 22 // Triggered when a content of a directory has been changed.
22 // |directory_path| is a virtual directory path (/drive/...) representing 23 // |directory_path| is a virtual directory path (/drive/...) representing
23 // changed directory. 24 // changed directory.
24 virtual void OnDirectoryChanged(const base::FilePath& directory_path) {} 25 virtual void OnDirectoryChanged(const base::FilePath& directory_path) {}
25 26
27 // Triggared when a specific drive error is occured.
kinaba 2014/01/15 02:18:25 nit: s/is occured/occurred/ (no "is" and two "r"s)
hashimoto 2014/01/15 07:05:06 nit: ditto for operation_observer.h.
hirono 2014/01/15 10:40:51 Done.
28 virtual void OnDriveSyncError(file_system::DriveSyncErrorType type) {}
29
26 protected: 30 protected:
27 virtual ~FileSystemObserver() {} 31 virtual ~FileSystemObserver() {}
28 }; 32 };
29 33
30 } // namespace drive 34 } // namespace drive
31 35
32 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OBSERVER_H_ 36 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698