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

Unified Diff: third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h

Issue 2379823003: Move MHTML file writing out of the renderer main thread. (Closed)
Patch Set: Removed unneeded std::move calls that clang was complaining about. Created 4 years, 2 months 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: third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h
diff --git a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h
index 1dc5c5c13cd9952289f339dd7a9f7e56f3ed1b1d..43d301e7245d6a03afa7b83c8636f7244c29e2be 100644
--- a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h
+++ b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h
@@ -35,6 +35,7 @@
#include "wtf/HashMap.h"
#include "wtf/Vector.h"
#include "wtf/text/StringHash.h"
+#include <vector>
namespace blink {
@@ -61,7 +62,7 @@ class PLATFORM_EXPORT MHTMLArchive final
static void generateMHTMLHeader(const String& boundary,
const String& title,
const String& mimeType,
- SharedBuffer& outputBuffer);
+ std::vector<char>& outputBuffer);
// Serializes SerializedResource as an MHTML part and appends it in
// |outputBuffer|.
@@ -76,7 +77,7 @@ class PLATFORM_EXPORT MHTMLArchive final
const String& contentID,
EncodingPolicy,
const SerializedResource&,
- SharedBuffer& outputBuffer);
+ std::vector<char>& outputBuffer);
// Generates an MHTML footer and appends it to |outputBuffer|.
//
@@ -84,7 +85,7 @@ class PLATFORM_EXPORT MHTMLArchive final
// generateMHTMLPart and generateMHTMLFooter calls that belong to the same
// MHTML document (see also rfc1341, section 7.2.1, "boundary" description).
static void generateMHTMLFooter(const String& boundary,
- SharedBuffer& outputBuffer);
+ std::vector<char>& outputBuffer);
typedef HeapHashMap<String, Member<ArchiveResource>> SubArchiveResources;

Powered by Google App Engine
This is Rietveld 408576698