Enable delegate to override SaveToFile and AppendToFile.
This commit is contained in:
parent
d2ff5ad798
commit
54060ed53d
2 changed files with 10 additions and 0 deletions
|
@ -153,10 +153,14 @@ void InspectableWebContentsImpl::OpenInNewTab(const std::string& url) {
|
|||
|
||||
void InspectableWebContentsImpl::SaveToFile(
|
||||
const std::string& url, const std::string& content, bool save_as) {
|
||||
if (delegate_)
|
||||
delegate_->DevToolsSaveToFile(url, content, save_as);
|
||||
}
|
||||
|
||||
void InspectableWebContentsImpl::AppendToFile(
|
||||
const std::string& url, const std::string& content) {
|
||||
if (delegate_)
|
||||
delegate_->DevToolsAppendToFile(url, content);
|
||||
}
|
||||
|
||||
void InspectableWebContentsImpl::RequestFileSystems() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue