Hide MHTMLGenerationManager from chrome.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9566001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124430 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index c760413..80dbc0e 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -17,6 +17,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"
@@ -1139,6 +1140,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());
diff --git a/content/browser/tab_contents/tab_contents.h b/content/browser/tab_contents/tab_contents.h
index 56cd1cf..9c89d9d 100644
--- a/content/browser/tab_contents/tab_contents.h
+++ b/content/browser/tab_contents/tab_contents.h
@@ -186,6 +186,9 @@
virtual bool SavePage(const FilePath& main_file,
const FilePath& dir_path,
content::SavePageType save_type) OVERRIDE;
+ virtual void GenerateMHTML(
+ const FilePath& file,
+ const base::Callback<void(const FilePath&, int64)>& callback) OVERRIDE;
virtual bool IsActiveEntry(int32 page_id) OVERRIDE;
virtual const std::string& GetContentsMimeType() const OVERRIDE;