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

Unified Diff: Source/core/page/PageSerializer.h

Issue 1177733002: Merge page serializers [11/12] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix issues Created 5 years, 6 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: Source/core/page/PageSerializer.h
diff --git a/Source/core/page/PageSerializer.h b/Source/core/page/PageSerializer.h
index 52f43c9e0012ade9e08280728680b357d248e09e..26c8d36a311021edd6ed626c958d7c0457d94bd4 100644
--- a/Source/core/page/PageSerializer.h
+++ b/Source/core/page/PageSerializer.h
@@ -57,6 +57,10 @@ class StylePropertySet;
struct SerializedResource;
+// This hash map is used to map resource URL of original link to its local
+// file path.
+typedef HashMap<String, String> LinkLocalPathMap;
+
// This class is used to serialize a page contents back to text (typically HTML).
// It serializes all the page frames and retrieves resources such as images and CSS stylesheets.
class CORE_EXPORT PageSerializer final {
@@ -68,7 +72,7 @@ public:
virtual bool shouldIgnoreAttribute(const Attribute&) = 0;
};
- PageSerializer(Vector<SerializedResource>*, PassOwnPtr<Delegate>);
+ PageSerializer(Vector<SerializedResource>*, PassOwnPtr<Delegate>, LinkLocalPathMap* = 0, String directory = "");
yosin_UTC9 2015/06/15 09:34:37 nit: s/0/nullptr/
Tiger (Sony Mobile) 2015/06/15 11:26:45 Done.
// Initiates the serialization of the frame's page. All serialized content and retrieved
// resources are added to the Vector passed to the constructor. The first resource in that
@@ -100,6 +104,8 @@ private:
using BlankFrameURLMap = WillBeHeapHashMap<RawPtrWillBeMember<LocalFrame>, KURL>;
BlankFrameURLMap m_blankFrameURLs;
+ LinkLocalPathMap* m_URLs;
+ String m_directory;
unsigned m_blankFrameCounter;
OwnPtr<Delegate> m_delegate;

Powered by Google App Engine
This is Rietveld 408576698