From e2641d881d24be43d5ddaa4ea72a23fb9cf41df0 Mon Sep 17 00:00:00 2001 From: "loislo@chromium.org" Date: Wed, 2 May 2012 07:48:42 +0000 Subject: DevTools: AppendFile implementation. DevTools wants to save very big files like HeapSnapshots. It is not possible at the moment because the file can be about ~6Gb. BUG=none TEST=FileUtilTest.AppendFile Review URL: https://chromiumcodereview.appspot.com/10240002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134877 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/debugger/devtools_frontend_host.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'content/browser/debugger/devtools_frontend_host.cc') diff --git a/content/browser/debugger/devtools_frontend_host.cc b/content/browser/debugger/devtools_frontend_host.cc index fcf0e74..54beb1a 100644 --- a/content/browser/debugger/devtools_frontend_host.cc +++ b/content/browser/debugger/devtools_frontend_host.cc @@ -74,10 +74,9 @@ bool DevToolsFrontendHost::OnMessageReceived( OnRequestUndockWindow) IPC_MESSAGE_HANDLER(DevToolsHostMsg_RequestSetDockSide, OnRequestSetDockSide) - IPC_MESSAGE_HANDLER(DevToolsHostMsg_OpenInNewTab, - OnOpenInNewTab) - IPC_MESSAGE_HANDLER(DevToolsHostMsg_Save, - OnSave) + IPC_MESSAGE_HANDLER(DevToolsHostMsg_OpenInNewTab, OnOpenInNewTab) + IPC_MESSAGE_HANDLER(DevToolsHostMsg_Save, OnSave) + IPC_MESSAGE_HANDLER(DevToolsHostMsg_Append, OnAppend) IPC_MESSAGE_UNHANDLED(handled = false) IPC_END_MESSAGE_MAP() return handled; @@ -112,6 +111,12 @@ void DevToolsFrontendHost::OnSave( delegate_->SaveToFile(url, content, save_as); } +void DevToolsFrontendHost::OnAppend( + const std::string& url, + const std::string& content) { + delegate_->AppendToFile(url, content); +} + void DevToolsFrontendHost::OnRequestDockWindow() { delegate_->DockWindow(); } -- cgit v1.1