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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_util.h

Issue 22165002: Change the meaning of SelectFileDialog.support_drive: it means Drive-aware callers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix (#2). Created 7 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/chromeos/extensions/file_manager/private_api_util.h
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_util.h b/chrome/browser/chromeos/extensions/file_manager/private_api_util.h
index 876266b43d0c5d01dcfe3e304218adf70acf54c8..cbf4186d256aafccc407b3065dec094dba9e5dee 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_util.h
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_util.h
@@ -56,11 +56,26 @@ base::FilePath GetLocalPathFromURL(
typedef base::Callback<void(const std::vector<ui::SelectedFileInfo>&)>
GetSelectedFileInfoCallback;
+// Option enum to control how to set the ui::SelectedFileInfo::local_path
+// fields in GetSelectedFileInfo() for Drive files.
+// NO_LOCAL_PATH_RESOLUTION:
+// Does nothing. Set the Drive path as-is.
+// NEED_LOCAL_PATH_FOR_OPENING:
+// Sets the path to a local cache file.
+// NEED_LOCAL_PATH_FOR_SAVING:
+// Sets the path to a local cache file. Modification to the file is monitored
+// and automatically synced to the Drive server.
+enum GetSelectedFileInfoLocalPathOption {
+ NO_LOCAL_PATH_RESOLUTION,
+ NEED_LOCAL_PATH_FOR_OPENING,
+ NEED_LOCAL_PATH_FOR_SAVING,
+};
+
// Gets the information for |file_urls|.
void GetSelectedFileInfo(content::RenderViewHost* render_view_host,
Profile* profile,
const std::vector<GURL>& file_urls,
- bool for_opening,
+ GetSelectedFileInfoLocalPathOption local_path_option,
GetSelectedFileInfoCallback callback);
} // namespace util

Powered by Google App Engine
This is Rietveld 408576698