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

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

Issue 14081036: DevTools: Replace .allow-devtools-edit file check with confirmation infobar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/devtools/devtools_file_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e97e5bd7e0a04a4530968b5300ae995edd44bff5..4669d93de3cc86cc2ed253e3d8e7a8840cb594d8 100644
--- a/chrome/browser/devtools/devtools_file_helper.h
+++ b/chrome/browser/devtools/devtools_file_helper.h
@@ -13,6 +13,7 @@
#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
+#include "base/string16.h"
class Profile;
@@ -45,9 +46,11 @@ class DevToolsFileHelper {
typedef base::Callback<
void(const std::vector<DevToolsFileHelper::FileSystem>&)>
RequestFileSystemsCallback;
- typedef base::Callback<
- void(std::string, const DevToolsFileHelper::FileSystem&)>
+ typedef base::Callback<void(const DevToolsFileHelper::FileSystem&)>
AddFileSystemCallback;
+ typedef base::Callback<void(const string16&,
+ const base::Callback<void(bool)>&)>
+ ShowInfoBarCallback;
// Saves |content| to the file and associates its path with given |url|.
// If client is calling this method with given |url| for the first time
@@ -73,7 +76,8 @@ class DevToolsFileHelper {
// struct to |callback|. Saves file system path to prefs.
// If selected folder does not contain magic file, passes error string to
// |callback|.
- void AddFileSystem(const AddFileSystemCallback& callback);
+ void AddFileSystem(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
@@ -89,11 +93,14 @@ class DevToolsFileHelper {
const SaveCallback& callback,
const base::FilePath& path);
void SaveAsFileSelectionCanceled();
- void InnerAddFileSystem(const AddFileSystemCallback& callback,
- const base::FilePath& path);
- void AddValidatedFileSystem(
+ void InnerAddFileSystem(
+ const AddFileSystemCallback& callback,
+ const ShowInfoBarCallback& show_info_bar_callback,
+ const base::FilePath& path);
+ void AddUserConfirmedFileSystem(
const AddFileSystemCallback& callback,
- const std::vector<base::FilePath>& permitted_paths);
+ const base::FilePath& path,
+ bool allowed);
void RestoreValidatedFileSystems(
const RequestFileSystemsCallback& callback,
const std::vector<base::FilePath>& file_paths);
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/devtools/devtools_file_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698