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; |