Chromium Code Reviews| Index: Source/core/page/PageSerializer.h |
| diff --git a/Source/core/page/PageSerializer.h b/Source/core/page/PageSerializer.h |
| index 52f43c9e0012ade9e08280728680b357d248e09e..eebcb627ea3ea964fda69a53fe6ed2ed533992ef 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* = nullptr, String directory = ""); |
|
yosin_UTC9
2015/06/16 01:21:50
It seems that it is better to have member function
Tiger (Sony Mobile)
2015/06/16 09:28:47
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; |