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

Unified Diff: chrome/browser/chromeos/file_system_provider/provided_file_system.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.h
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system.h b/chrome/browser/chromeos/file_system_provider/provided_file_system.h
index 71104786e1eff386133620c4056965152099cfa9..03e325e17e48f70a5b624e9111f04a614030ca50 100644
--- a/chrome/browser/chromeos/file_system_provider/provided_file_system.h
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system.h
@@ -5,9 +5,15 @@
#ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
#define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
+#include "base/memory/weak_ptr.h"
#include "chrome/browser/chromeos/file_system_provider/provided_file_system_info.h"
#include "chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h"
#include "chrome/browser/chromeos/file_system_provider/request_manager.h"
+#include "webkit/browser/fileapi/async_file_util.h"
+
+namespace base {
+class FilePath;
+} // namespace base
namespace extensions {
class EventRouter;
@@ -16,7 +22,7 @@ class EventRouter;
namespace chromeos {
namespace file_system_provider {
-// Provided file system implementation. Forwards requests between providers and
+// Provided file system implemenrtation. Forwards requests between providers and
kinaba 2014/04/25 06:35:06 nit: implementation
mtomasz 2014/04/28 00:42:47 Done.
// clients.
class ProvidedFileSystem : public ProvidedFileSystemInterface {
public:
@@ -25,15 +31,17 @@ class ProvidedFileSystem : public ProvidedFileSystemInterface {
virtual ~ProvidedFileSystem();
// ProvidedFileSystemInterface overrides.
- virtual bool RequestUnmount(
+ virtual void RequestUnmount(
const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE;
virtual RequestManager* GetRequestManager() OVERRIDE;
+ virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() OVERRIDE;
private:
extensions::EventRouter* event_router_;
RequestManager request_manager_;
ProvidedFileSystemInfo file_system_info_;
+ base::WeakPtrFactory<ProvidedFileSystemInterface> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem);
};

Powered by Google App Engine
This is Rietveld 408576698