OLD | NEW |
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" | 10 #include "base/files/file.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 namespace file_system_provider { | 13 namespace file_system_provider { |
14 | 14 |
15 class ProvidedFileSystem; | 15 class ProvidedFileSystemInfo; |
16 | 16 |
17 class Observer { | 17 class Observer { |
18 public: | 18 public: |
19 // Called when a file system mounting has been invoked. For success, the | 19 // Called when a file system mounting has been invoked. For success, the |
20 // |error| argument is set to FILE_OK. Otherwise, |error| contains a specific | 20 // |error| argument is set to FILE_OK. Otherwise, |error| contains a specific |
21 // error code. | 21 // error code. |
22 virtual void OnProvidedFileSystemMount(const ProvidedFileSystem& file_system, | 22 virtual void OnProvidedFileSystemMount( |
23 base::File::Error error) = 0; | 23 const ProvidedFileSystemInfo& file_system_info, |
| 24 base::File::Error error) = 0; |
24 | 25 |
25 // Called when a file system unmounting has been invoked. For success, the | 26 // 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| argument is set to FILE_OK. Otherwise, |error| contains a specific |
27 // error code. | 28 // error code. |
28 virtual void OnProvidedFileSystemUnmount( | 29 virtual void OnProvidedFileSystemUnmount( |
29 const ProvidedFileSystem& file_system, | 30 const ProvidedFileSystemInfo& file_system_info, |
30 base::File::Error error) = 0; | 31 base::File::Error error) = 0; |
31 }; | 32 }; |
32 | 33 |
33 } // namespace file_system_provider | 34 } // namespace file_system_provider |
34 } // namespace chromeos | 35 } // namespace chromeos |
35 | 36 |
36 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OBSERVER_H_ | 37 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OBSERVER_H_ |
OLD | NEW |