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

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

Issue 257493004: [fsp] Refactor handling operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. 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
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_PROVIDED_FILE_SYSTEM_INTERF ACE_H_ 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_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_
7 7
8 #include "base/memory/weak_ptr.h"
8 #include "webkit/browser/fileapi/async_file_util.h" 9 #include "webkit/browser/fileapi/async_file_util.h"
9 10
10 class EventRouter; 11 class EventRouter;
11 12
13 namespace base {
14 class FilePath;
15 } // namespace base
16
12 namespace chromeos { 17 namespace chromeos {
13 namespace file_system_provider { 18 namespace file_system_provider {
14 19
15 class ProvidedFileSystemInfo; 20 class ProvidedFileSystemInfo;
16 class RequestManager; 21 class RequestManager;
17 22
18 // Interface for a provided file system. Acts as a proxy between providers 23 // Interface for a provided file system. Acts as a proxy between providers
19 // and clients. 24 // and clients.
20 // TODO(mtomasz): Add more methods once implemented. 25 // TODO(mtomasz): Add more methods once implemented.
21 class ProvidedFileSystemInterface { 26 class ProvidedFileSystemInterface {
22 public: 27 public:
23 virtual ~ProvidedFileSystemInterface() {} 28 virtual ~ProvidedFileSystemInterface() {}
24 29
25 // Requests unmounting of the file system. The callback is called when the 30 // 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 31 // request is accepted or rejected, with an error code.
27 // request could not been created, true otherwise. 32 virtual void RequestUnmount(
28 virtual bool RequestUnmount(
29 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; 33 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0;
30 34
31 // Returns a provided file system info for this file system. 35 // Returns a provided file system info for this file system.
32 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; 36 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0;
33 37
34 // Returns a request manager for the file system. 38 // Returns a request manager for the file system.
35 virtual RequestManager* GetRequestManager() = 0; 39 virtual RequestManager* GetRequestManager() = 0;
40
41 // Returns a weak pointer for the file system class.
42 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0;
kinaba 2014/04/25 06:35:06 Do you have specific reason for this method to be
mtomasz 2014/04/28 00:42:47 This CL is a split of a big CL. I just removed thi
36 }; 43 };
37 44
38 } // namespace file_system_provider 45 } // namespace file_system_provider
39 } // namespace chromeos 46 } // namespace chromeos
40 47
41 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_ 48 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698