RewriteContext * parent()
Allows a nested rewriter to walk up its parent hierarchy.
Definition: rewrite_context.h:280
virtual void Rewrite(int partition_index, CachedResult *partition, const OutputResourcePtr &output)
SingleRewriteContext(RewriteDriver *driver, RewriteContext *parent, ResourceContext *resource_context)
void AddLinkRelCanonical(const ResourcePtr &input, ResponseHeaders *output)
Adds a link: rel=canonical header pointing to the input URL as canonical.
virtual void RewriteSingle(const ResourcePtr &input, const OutputResourcePtr &output)=0
Subclasses of SingleRewriteContext must override this:
void AddLinkRelCanonicalForFallbackHeaders(ResponseHeaders *output)
Helper for using above in FixFetchFallbackHeaders()
Definition: rewrite_context.h:155
virtual bool Partition(OutputPartitions *partitions, OutputResourceVector *outputs)
SingleRewriteContext takes care of these methods from RewriteContext:
Definition: single_rewrite_context.h:36