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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h b/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h
index 3a552d84ca4a94efcf3c49d6e432433a9ba58a5b..722ee3befe83713a509708d155b3c96398817c89 100644
--- a/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h
@@ -5,10 +5,15 @@
#ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERFACE_H_
#define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERFACE_H_
+#include "base/memory/weak_ptr.h"
#include "webkit/browser/fileapi/async_file_util.h"
class EventRouter;
+namespace base {
+class FilePath;
+} // namespace base
+
namespace chromeos {
namespace file_system_provider {
@@ -23,9 +28,8 @@ class ProvidedFileSystemInterface {
virtual ~ProvidedFileSystemInterface() {}
// Requests unmounting of the file system. The callback is called when the
- // request is accepted or rejected, with an error code. Returns false if the
- // request could not been created, true otherwise.
- virtual bool RequestUnmount(
+ // request is accepted or rejected, with an error code.
+ virtual void RequestUnmount(
const fileapi::AsyncFileUtil::StatusCallback& callback) = 0;
// Returns a provided file system info for this file system.
@@ -33,6 +37,9 @@ class ProvidedFileSystemInterface {
// Returns a request manager for the file system.
virtual RequestManager* GetRequestManager() = 0;
+
+ // Returns a weak pointer for the file system class.
+ 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
};
} // namespace file_system_provider

Powered by Google App Engine
This is Rietveld 408576698