Chromium Code Reviews| Index: third_party/WebKit/Source/core/page/PageSerializer.h |
| diff --git a/third_party/WebKit/Source/core/page/PageSerializer.h b/third_party/WebKit/Source/core/page/PageSerializer.h |
| index 501d99f509edbf3c654d92bea6453d31d2bd7b70..fa662e3ce28a39c0d4b2f83ad340803cff0febc7 100644 |
| --- a/third_party/WebKit/Source/core/page/PageSerializer.h |
| +++ b/third_party/WebKit/Source/core/page/PageSerializer.h |
| @@ -58,8 +58,9 @@ class StylePropertySet; |
| struct SerializedResource; |
| -// 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. |
| +// This class is used to serialize frame's contents back to text (typically HTML). |
| +// It serializes frame's document and resources such as images and CSS stylesheets. |
| +// TODO(lukasza): Rename this class to FrameSerializer. |
| class CORE_EXPORT PageSerializer final { |
| STACK_ALLOCATED(); |
| public: |
| @@ -72,10 +73,11 @@ public: |
| PageSerializer(Vector<SerializedResource>*, PassOwnPtr<Delegate>); |
| - // 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 |
| - // vector is the top frame serialized content. |
| - void serialize(Page*); |
| + // Initiates the serialization of the frame. All serialized content and |
| + // retrieved resources are added to the Vector passed to the constructor. |
| + // The first resource in that vector is the frame's serialized content. |
| + // Subsequent resources are images, css, etc. |
| + void serializeFrame(LocalFrame*); |
|
dcheng
2015/11/12 23:47:32
LocalFrame&. Calling this with a null frame is an
Łukasz Anforowicz
2015/11/13 00:22:10
Good point. Done.
|
| void registerRewriteURL(const String& from, const String& to); |
| void setRewriteURLFolder(const String&); |
| @@ -87,8 +89,6 @@ public: |
| static String markOfTheWebDeclaration(const KURL&); |
| private: |
| - void serializeFrame(LocalFrame*); |
| - |
| // Serializes the stylesheet back to text and adds it to the resources if URL is not-empty. |
| // It also adds any resources included in that stylesheet (including any imported stylesheets and their own resources). |
| void serializeCSSStyleSheet(CSSStyleSheet&, const KURL&); |