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

Unified Diff: content/browser/devtools/devtools_frontend_host.cc

Issue 11570081: Support file system access in DevTools with isolated file system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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: content/browser/devtools/devtools_frontend_host.cc
diff --git a/content/browser/devtools/devtools_frontend_host.cc b/content/browser/devtools/devtools_frontend_host.cc
index f16dcdfd1346a9a68a7f7dd11cd021d5098d0e3d..7a4ec7a080cc8112c77c01fb5b5c227cc8b9c2e5 100644
--- a/content/browser/devtools/devtools_frontend_host.cc
+++ b/content/browser/devtools/devtools_frontend_host.cc
@@ -70,6 +70,13 @@ bool DevToolsFrontendHost::OnMessageReceived(
IPC_MESSAGE_HANDLER(DevToolsHostMsg_OpenInNewTab, OnOpenInNewTab)
IPC_MESSAGE_HANDLER(DevToolsHostMsg_Save, OnSave)
IPC_MESSAGE_HANDLER(DevToolsHostMsg_Append, OnAppend)
+ IPC_MESSAGE_HANDLER(DevToolsHostMsg_RequestFileSystemPermissions,
+ OnRequestFileSystemPermissions)
+ IPC_MESSAGE_HANDLER(
+ DevToolsHostMsg_SelectFolderAndGrantFileSystemPermission,
+ OnSelectFolderAndGrantFileSystemPermission)
+ IPC_MESSAGE_HANDLER(DevToolsHostMsg_RevokeFileSystemPermission,
+ OnRevokeFileSystemPermission)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -110,6 +117,19 @@ void DevToolsFrontendHost::OnAppend(
delegate_->AppendToFile(url, content);
}
+void DevToolsFrontendHost::OnRequestFileSystemPermissions() {
+ delegate_->RequestFileSystemPermissions();
+}
+
+void DevToolsFrontendHost::OnSelectFolderAndGrantFileSystemPermission() {
+ delegate_->SelectFolderAndGrantFileSystemPermission();
+}
+
+void DevToolsFrontendHost::OnRevokeFileSystemPermission(
+ const std::string& file_system_path) {
+ delegate_->RevokeFileSystemPermission(file_system_path);
+}
+
void DevToolsFrontendHost::OnRequestSetDockSide(const std::string& side) {
delegate_->SetDockSide(side);
}

Powered by Google App Engine
This is Rietveld 408576698