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

Unified Diff: chrome/browser/chromeos/file_system_provider/fake_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/fake_provided_file_system.h
diff --git a/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h b/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h
index a77c7fcf9e4425f710d8660bc4abc383d0d4202c..4eff2d589ce70f6be165306cd5cea2b2c8a4c353 100644
--- a/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h
+++ b/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h
@@ -7,6 +7,7 @@
#include <string>
+#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"
@@ -28,10 +29,11 @@ class FakeProvidedFileSystem : public ProvidedFileSystemInterface {
virtual ~FakeProvidedFileSystem();
// 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;
// Factory callback, to be used in Service::SetFileSystemFactory(). The
// |event_router| argument can be NULL.
@@ -41,6 +43,8 @@ class FakeProvidedFileSystem : public ProvidedFileSystemInterface {
private:
ProvidedFileSystemInfo file_system_info_;
+ base::WeakPtrFactory<ProvidedFileSystemInterface> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem);
};

Powered by Google App Engine
This is Rietveld 408576698