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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/observer.h

Issue 194693002: [fsp] Add requestUnmount() method together with the request manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FILE_SYSTEM_PROVIDER_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file.h"
11
10 namespace chromeos { 12 namespace chromeos {
11 namespace file_system_provider { 13 namespace file_system_provider {
12 14
13 class ProvidedFileSystem; 15 class ProvidedFileSystem;
14 16
15 class Observer { 17 class Observer {
16 public: 18 public:
17 virtual void OnProvidedFileSystemRegistered( 19 // Called when a file system mounting has been invoked. For success, the
18 const ProvidedFileSystem& file_system) = 0; 20 // |error| argument is set to FILE_OK. Otherwise, |error| contains a specific
19 virtual void OnProvidedFileSystemUnregistered( 21 // error code.
20 const ProvidedFileSystem& file_system) = 0; 22 virtual void OnProvidedFileSystemMount(const ProvidedFileSystem& file_system,
23 base::File::Error error) = 0;
24
25 // Called when a file system unmounting has been invoked. For success, the
26 // |error| argument is set to FILE_OK. Otherwise, |error| contains a specific
27 // error code.
28 virtual void OnProvidedFileSystemUnmount(
29 const ProvidedFileSystem& file_system,
30 base::File::Error error) = 0;
21 }; 31 };
22 32
23 } // namespace file_system_provider 33 } // namespace file_system_provider
24 } // namespace chromeos 34 } // namespace chromeos
25 35
26 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OBSERVER_H_ 36 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698