| Index: third_party/WebKit/Source/core/frame/FrameSerializer.h
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameSerializer.h b/third_party/WebKit/Source/core/frame/FrameSerializer.h
|
| index 9aaf155303aa327a2b38ecb37bc3f76ff5d6ceef..e50e91b33eefe165e6d462e922aa9d6a3ab472b3 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameSerializer.h
|
| +++ b/third_party/WebKit/Source/core/frame/FrameSerializer.h
|
| @@ -85,9 +85,15 @@ public:
|
| return false;
|
| }
|
|
|
| - // Tells whether to skip serialization of a subresource with a given URI.
|
| - // Used to deduplicate resources across multiple frames.
|
| - virtual bool shouldSkipResource(const KURL&)
|
| + // Tells whether to skip serialization of a subresource or CSSStyleSheet
|
| + // with a given URI. Used to deduplicate resources across multiple frames.
|
| + virtual bool shouldSkipResourceWithURL(const KURL&)
|
| + {
|
| + return false;
|
| + }
|
| +
|
| + // Tells whether to skip serialization of a subresource.
|
| + virtual bool shouldSkipResource(const Resource&)
|
| {
|
| return false;
|
| }
|
| @@ -117,7 +123,7 @@ private:
|
|
|
| bool shouldAddURL(const KURL&);
|
|
|
| - void addToResources(Resource *, PassRefPtr<SharedBuffer>, const KURL&);
|
| + void addToResources(const Resource&, PassRefPtr<SharedBuffer>, const KURL&);
|
| void addImageToResources(ImageResource*, const KURL&);
|
| void addFontToResources(FontResource*);
|
|
|
|
|