 Chromium Code Reviews
 Chromium Code Reviews Issue 68613003:
  Merges the two different page serializers  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master
    
  
    Issue 68613003:
  Merges the two different page serializers  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master| Index: Source/core/page/PageSerializer.h | 
| diff --git a/Source/core/page/PageSerializer.h b/Source/core/page/PageSerializer.h | 
| index 93a4dc10677b93a545968cfbb8d3209855e8e620..2ad2e72bd4871eb7d32db05c1aebc9f1afc0bc89 100644 | 
| --- a/Source/core/page/PageSerializer.h | 
| +++ b/Source/core/page/PageSerializer.h | 
| @@ -55,11 +55,15 @@ class StyleRuleFontFace; | 
| 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 PageSerializer { | 
| public: | 
| - explicit PageSerializer(Vector<SerializedResource>*); | 
| + PageSerializer(Vector<SerializedResource>*, LinkLocalPathMap* = 0, String = ""); | 
| 
abarth-chromium
2013/11/15 15:58:51
Can you name this last parameter?  It's not clear
 | 
| // 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 | 
| @@ -87,6 +91,8 @@ private: | 
| Vector<SerializedResource>* m_resources; | 
| ListHashSet<KURL> m_resourceURLs; | 
| HashMap<Frame*, KURL> m_blankFrameURLs; | 
| + LinkLocalPathMap* m_URLs; | 
| + String m_directory; | 
| unsigned m_blankFrameCounter; | 
| }; |