Page Speed Optimization Libraries
1.13.35.1
|
#include "remove_comments_filter.h"
Public Member Functions | |
virtual bool | IsRetainedComment (const StringPiece &comment) const =0 |
Interface that allows policy injection into a RemoveCommentsFilter instance. We cannot use RewriteOptions directly here since RemoveCommentsFilter does not want to take on all of the RewriteOptions dependencies. If you want a simple data-structure based implementation, there is a sample one in the unit test.
|
pure virtual |
Return true if the given comment should not be removed from the HTML, false otherwise.