Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(866)

Unified Diff: content/browser/download/mhtml_generation_manager.h

Issue 1417323006: OOPIFs: Deduplicating MHTML parts across frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mhtml-serialization-per-frame
Patch Set: Rebasing... Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/download/mhtml_generation_manager.h
diff --git a/content/browser/download/mhtml_generation_manager.h b/content/browser/download/mhtml_generation_manager.h
index e697e134043ca90666683bbc423ca49c848de3c2..b418e5484e0f3c254cf49a78d2af156f3ac3b3a2 100644
--- a/content/browser/download/mhtml_generation_manager.h
+++ b/content/browser/download/mhtml_generation_manager.h
@@ -8,12 +8,15 @@
#include <stdint.h>
#include <map>
+#include <set>
+#include <string>
#include "base/files/file.h"
#include "base/macros.h"
#include "base/memory/singleton.h"
#include "base/process/process.h"
#include "ipc/ipc_platform_file.h"
+#include "url/gurl.h"
namespace base {
class FilePath;
@@ -21,6 +24,7 @@ class FilePath;
namespace content {
+class RenderFrameHostImpl;
class WebContents;
// The class and all of its members live on the UI thread. Only static methods
@@ -42,8 +46,11 @@ class MHTMLGenerationManager {
// Handler for FrameHostMsg_SerializeAsMHTMLResponse (a notification from the
// renderer that the MHTML generation finished for a single frame).
- void OnSavedFrameAsMHTML(int job_id,
- bool mhtml_generation_in_renderer_succeeded);
+ void OnSerializeAsMHTMLResponse(
+ RenderFrameHostImpl* sender,
+ int job_id,
+ bool mhtml_generation_in_renderer_succeeded,
+ const std::set<std::string>& digests_of_uris_of_serialized_resources);
private:
friend struct base::DefaultSingletonTraits<MHTMLGenerationManager>;
« no previous file with comments | « chrome/browser/download/save_page_browsertest.cc ('k') | content/browser/download/mhtml_generation_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698