delegate filesystem request calls

This commit is contained in:
deepak1556 2015-06-04 22:21:23 +05:30
parent 894cc64276
commit 62f860123d
2 changed files with 7 additions and 0 deletions

View file

@ -20,6 +20,9 @@ class InspectableWebContentsDelegate {
virtual void DevToolsAppendToFile(
const std::string& url, const std::string& content) {}
virtual void DevToolsFocused() {}
virtual void DevToolsAddFileSystem() {}
virtual void DevToolsRemoveFileSystem(
const std::string& file_system_path) {}
#if defined(USE_X11)
// Called when creating devtools window.

View file

@ -265,10 +265,14 @@ void InspectableWebContentsImpl::RequestFileSystems() {
}
void InspectableWebContentsImpl::AddFileSystem() {
if (delegate_)
delegate_->DevToolsAddFileSystem();
}
void InspectableWebContentsImpl::RemoveFileSystem(
const std::string& file_system_path) {
if (delegate_)
delegate_->DevToolsRemoveFileSystem(file_system_path);
}
void InspectableWebContentsImpl::UpgradeDraggedFileSystemPermissions(