Index: content/browser/tab_contents/tab_contents.cc |
=================================================================== |
--- content/browser/tab_contents/tab_contents.cc (revision 124331) |
+++ content/browser/tab_contents/tab_contents.cc (working copy) |
@@ -16,6 +16,7 @@ |
#include "content/browser/child_process_security_policy_impl.h" |
#include "content/browser/debugger/devtools_manager_impl.h" |
#include "content/browser/download/download_stats.h" |
+#include "content/browser/download/mhtml_generation_manager.h" |
#include "content/browser/download/save_package.h" |
#include "content/browser/gpu/gpu_data_manager_impl.h" |
#include "content/browser/gpu/gpu_process_host.h" |
@@ -1128,6 +1129,12 @@ |
return save_package_->Init(); |
} |
+void TabContents::GenerateMHTML( |
+ const FilePath& file, |
+ const base::Callback<void(const FilePath&, int64)>& callback) { |
+ MHTMLGenerationManager::GetInstance()->GenerateMHTML(this, file, callback); |
+} |
+ |
bool TabContents::IsActiveEntry(int32 page_id) { |
NavigationEntryImpl* active_entry = |
NavigationEntryImpl::FromNavigationEntry(controller_.GetActiveEntry()); |