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

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

Issue 210803003: [fsp] Decouple file_service_provider::Service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 years, 8 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
(Empty)
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_PROVIDED_FILE_SYSTEM_INTERF ACE_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_
7
8 #include "webkit/browser/fileapi/async_file_util.h"
9
10 class EventRouter;
11
12 namespace chromeos {
13 namespace file_system_provider {
14
15 class ProvidedFileSystemInfo;
16 class RequestManager;
17
18 // Interface for a provided file system. Acts as a proxy between providers
19 // and clients.
20 // TODO(mtomasz): Add more methods once implemented.
21 class ProvidedFileSystemInterface {
22 public:
23 virtual ~ProvidedFileSystemInterface() {}
24
25 // Requests unmounting of the file system. The callback is called when the
26 // request is accepted or rejected, with an error code. Returns false if the
27 // request could not been created, true otherwise.
28 virtual bool RequestUnmount(
29 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0;
30
31 // Returns a provided file system info for this file system.
32 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0;
33 };
34
35 } // namespace file_system_provider
36 } // namespace chromeos
37
38 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698