Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / file_system_provider / observer.h
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OBSERVER_H_
7
8 #include <string>
9
10 #include "base/files/file.h"
11
12 namespace chromeos {
13 namespace file_system_provider {
14
15 class ProvidedFileSystemInfo;
16
17 // Observes file_system_provider::Service for mounting and unmounting events.
18 class Observer {
19  public:
20   // Called when a file system mounting has been invoked. For success, the
21   // |error| argument is set to FILE_OK. Otherwise, |error| contains a specific
22   // error code.
23   virtual void OnProvidedFileSystemMount(
24       const ProvidedFileSystemInfo& file_system_info,
25       base::File::Error error) = 0;
26
27   // Called when a file system unmounting has been invoked. For success, the
28   // |error| argument is set to FILE_OK. Otherwise, |error| contains a specific
29   // error code.
30   virtual void OnProvidedFileSystemUnmount(
31       const ProvidedFileSystemInfo& file_system_info,
32       base::File::Error error) = 0;
33 };
34
35 }  // namespace file_system_provider
36 }  // namespace chromeos
37
38 #endif  // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OBSERVER_H_