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

Unified Diff: chrome/browser/devtools/devtools_file_helper.h

Issue 57073004: DevTools: Add support for adding folders to DevTools workspace with drag and drop (browser part) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/devtools/devtools_file_helper.h
diff --git a/chrome/browser/devtools/devtools_file_helper.h b/chrome/browser/devtools/devtools_file_helper.h
index 11c4b96a0b192551fd87620b36e07e6ba480ddd8..2adadfbfe079cf7b9e815738753ee3cd7f10f70c 100644
--- a/chrome/browser/devtools/devtools_file_helper.h
+++ b/chrome/browser/devtools/devtools_file_helper.h
@@ -71,14 +71,29 @@ class DevToolsFileHelper {
// Shows select folder dialog.
// If user cancels folder selection, passes empty FileSystem struct to
// |callback|.
- // If selected folder contains magic file, grants renderer read/write
+ // Shows infobar by means of |show_info_bar_callback| to let the user decide
+ // whether to grant security permissions or not.
+ // If user allows adding file system in infobar, grants renderer read/write
// permissions, registers isolated file system for it and passes FileSystem
// struct to |callback|. Saves file system path to prefs.
- // If selected folder does not contain magic file, passes error string to
+ // If user denies adding file system in infobar, passes error string to
// |callback|.
void AddFileSystem(const AddFileSystemCallback& callback,
const ShowInfoBarCallback& show_info_bar_callback);
+ // Upgrades dragged file system permissions to a read-write access.
+ // Shows infobar by means of |show_info_bar_callback| to let the user decide
+ // whether to grant security permissions or not.
+ // If user allows adding file system in infobar, grants renderer read/write
+ // permissions, registers isolated file system for it and passes FileSystem
+ // struct to |callback|. Saves file system path to prefs.
+ // If user denies adding file system in infobar, passes error string to
+ // |callback|.
+ void UpgradeDraggedFileSystemPermissions(
+ const std::string& file_system_url,
+ const AddFileSystemCallback& callback,
+ const ShowInfoBarCallback& show_info_bar_callback);
+
// Loads file system paths from prefs, grants permissions and registers
// isolated file system for those of them that contain magic file and passes
// FileSystem structs for registered file systems to |callback|.

Powered by Google App Engine
This is Rietveld 408576698