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

Unified Diff: chrome/browser/extensions/extension_file_browser_private_api.h

Issue 7583041: Adding a format device button to UI. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed UI refresing. Created 9 years, 4 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/extensions/extension_file_browser_private_api.h
diff --git a/chrome/browser/extensions/extension_file_browser_private_api.h b/chrome/browser/extensions/extension_file_browser_private_api.h
index 83a37675c2c0469d4c4c63ab2fdd9878d43211a2..7c7716dfe228003d9691b9a592efbad1cfe152a9 100644
--- a/chrome/browser/extensions/extension_file_browser_private_api.h
+++ b/chrome/browser/extensions/extension_file_browser_private_api.h
@@ -134,8 +134,8 @@ class FileBrowserFunction
void* context);
// Callback with converted local paths.
- virtual void GetLocalPathsResponseOnUIThread(
- const FilePathList& files, void* context) {}
+ virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files,
+ void* context) {}
// Figure out the tab_id of the hosting tab.
int32 GetTabId() const;
@@ -174,8 +174,8 @@ class ViewFilesFunction
virtual bool RunImpl() OVERRIDE;
// FileBrowserFunction overrides.
- virtual void GetLocalPathsResponseOnUIThread(
- const FilePathList& files, void* context) OVERRIDE;
+ virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files,
+ void* context) OVERRIDE;
private:
DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.viewFiles");
@@ -194,8 +194,8 @@ class SelectFilesFunction
virtual bool RunImpl() OVERRIDE;
// FileBrowserFunction overrides.
- virtual void GetLocalPathsResponseOnUIThread(
- const FilePathList& files, void* context) OVERRIDE;
+ virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files,
+ void* context) OVERRIDE;
private:
DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.selectFiles");
@@ -229,8 +229,8 @@ class AddMountFunction
virtual bool RunImpl() OVERRIDE;
// FileBrowserFunction overrides.
- virtual void GetLocalPathsResponseOnUIThread(
- const FilePathList& files, void* context) OVERRIDE;
+ virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files,
+ void* context) OVERRIDE;
private:
struct MountParamaters {
@@ -257,7 +257,7 @@ class RemoveMountFunction
// FileBrowserFunction overrides.
virtual bool RunImpl() OVERRIDE;
virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files,
- void* context) OVERRIDE;
+ void* context) OVERRIDE;
private:
DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.removeMount");
@@ -279,15 +279,19 @@ class GetMountPointsFunction
// Formats Device given its mount path.
class FormatDeviceFunction
- : public SyncExtensionFunction {
- public:
- FormatDeviceFunction();
+ : public FileBrowserFunction {
+ public:
+ FormatDeviceFunction();
protected:
virtual ~FormatDeviceFunction();
virtual bool RunImpl() OVERRIDE;
+// FileBrowserFunction overrides.
+ virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files,
+ void* context) OVERRIDE;
+
private:
DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.formatDevice");
};

Powered by Google App Engine
This is Rietveld 408576698