namespace base {
class FilePath;
-}
+} // namespace base
namespace storage {
class FileSystemContext;
-}
+class FileSystemURL;
+} // namespace storage
namespace file_manager {
namespace util {
virtual ~FileManagerPrivateRequestFileSystemFunction() {}
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
private:
void RespondSuccessOnUIThread(const std::string& name,
// the class and its sub classes are used only for watching changes in
// directories.
class FileWatchFunctionBase : public LoggedAsyncExtensionFunction {
+ public:
+ // Calls SendResponse() with |success| converted to base::Value.
+ void Respond(bool success);
+
protected:
virtual ~FileWatchFunctionBase() {}
// Performs a file watch operation (ex. adds or removes a file watch).
virtual void PerformFileWatchOperation(
- const base::FilePath& local_path,
- const base::FilePath& virtual_path,
+ scoped_refptr<storage::FileSystemContext> file_system_context,
+ const storage::FileSystemURL& file_system_url,
const std::string& extension_id) = 0;
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
-
- // Calls SendResponse() with |success| converted to base::Value.
- void Respond(bool success);
+ virtual bool RunAsync() override;
};
// Implements the chrome.fileManagerPrivate.addFileWatch method.
// FileWatchFunctionBase override.
virtual void PerformFileWatchOperation(
- const base::FilePath& local_path,
- const base::FilePath& virtual_path,
- const std::string& extension_id) OVERRIDE;
+ scoped_refptr<storage::FileSystemContext> file_system_context,
+ const storage::FileSystemURL& file_system_url,
+ const std::string& extension_id) override;
};
// FileWatchFunctionBase override.
virtual void PerformFileWatchOperation(
- const base::FilePath& local_path,
- const base::FilePath& virtual_path,
- const std::string& extension_id) OVERRIDE;
+ scoped_refptr<storage::FileSystemContext> file_system_context,
+ const storage::FileSystemURL& file_system_url,
+ const std::string& extension_id) override;
};
// Implements the chrome.fileManagerPrivate.getSizeStats method.
virtual ~FileManagerPrivateGetSizeStatsFunction() {}
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
private:
void GetDriveAvailableSpaceCallback(drive::FileError error,
void OnFilePathLimitRetrieved(size_t current_length, size_t max_length);
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
};
// Implements the chrome.fileManagerPrivate.formatVolume method.
virtual ~FileManagerPrivateFormatVolumeFunction() {}
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
};
// Implements the chrome.fileManagerPrivate.startCopy method.
virtual ~FileManagerPrivateStartCopyFunction() {}
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
private:
// Part of RunAsync(). Called after Copy() is started on IO thread.
virtual ~FileManagerPrivateCancelCopyFunction() {}
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
};
// Implements the chrome.fileManagerPrivateInternal.resolveIsolatedEntries
virtual ~FileManagerPrivateInternalResolveIsolatedEntriesFunction() {}
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
private:
void RunAsyncAfterConvertFileDefinitionListToEntryDefinitionList(scoped_ptr<