|
| CacheExtender (RewriteDriver *driver) |
|
virtual void | StartDocumentImpl () |
|
virtual void | StartElementImpl (HtmlElement *element) |
|
virtual void | EndElementImpl (HtmlElement *element) |
|
virtual const char * | Name () const |
| The name of this filter – used for logging and debugging.
|
|
virtual const char * | id () const |
|
RewriteContext * | MakeNestedContext (RewriteContext *parent, const ResourceSlotPtr &slot) |
|
| RewriteFilter (RewriteDriver *driver) |
|
virtual void | DetermineEnabled (GoogleString *disabled_reason) |
|
virtual bool | CanModifyUrls () |
|
virtual const UrlSegmentEncoder * | encoder () const |
|
virtual RewriteContext * | MakeNestedRewriteContext (RewriteContext *parent, const ResourceSlotPtr &slot) |
|
virtual void | EncodeUserAgentIntoResourceContext (ResourceContext *context) const |
|
virtual const
RewriteOptions::Filter * | RelatedFilters (int *num_filters) const |
|
virtual const StringPieceVector * | RelatedOptions () const |
|
| CommonFilter (RewriteDriver *driver) |
|
const GoogleUrl & | base_url () const |
| Getters. More...
|
|
const GoogleUrl & | decoded_base_url () const |
|
RewriteDriver * | driver () const |
|
HtmlElement * | noscript_element () const |
|
void | InsertNodeAtBodyEnd (HtmlNode *data) |
|
virtual void | StartDocument () |
| Note: Don't overload these methods, overload the implementers instead!
|
|
virtual void | StartElement (HtmlElement *element) |
|
virtual void | EndElement (HtmlElement *element) |
|
virtual void | Characters (HtmlCharactersNode *characters) |
|
ResourcePtr | CreateInputResource (StringPiece input_url, RewriteDriver::InputRole role, bool *is_authorized) |
|
ResourcePtr | CreateInputResourceOrInsertDebugComment (StringPiece input_url, RewriteDriver::InputRole role, HtmlElement *element) |
|
void | ResolveUrl (StringPiece input_url, GoogleUrl *out_url) |
|
bool | IsRelativeUrlLoadPermittedByCsp (StringPiece url, CspDirective role) |
|
bool | BaseUrlIsValid () const |
|
bool | DebugMode () const |
|
bool | CanAddPagespeedOnloadToImage (const HtmlElement &) |
|
virtual void | LogFilterModifiedContent () |
|
virtual
RewriteDriver::InlineAuthorizationPolicy | AllowUnauthorizedDomain () const |
|
virtual bool | IntendedForInlining () const |
|
void | AddJsToElement (StringPiece js, HtmlElement *script) |
|
virtual void | EndDocument () |
|
virtual void | Cdata (HtmlCdataNode *cdata) |
| Called for CDATA blocks (e.g. <![CDATA[foobar]]>)
|
|
virtual void | Comment (HtmlCommentNode *comment) |
| Called for HTML comments that aren't IE directives (e.g. ).
|
|
virtual void | IEDirective (HtmlIEDirectiveNode *directive) |
|
virtual void | Directive (HtmlDirectiveNode *directive) |
| Called for HTML directives (e.g. <!doctype foobar>).
|
|
virtual void | Flush () |
|
ScriptUsage | GetScriptUsage () const override |
|
virtual void | RenderDone () |
|
bool | is_enabled () const |
|
void | set_is_enabled (bool is_enabled) |
|
Rewrites resources without changing their content – just their URLs and headers. The original intent of this filter was limited to cache extension. However, its scope has been expanded to include domain sharding and moving static resources to cookieless domains or CDNs.
- Todo:
- TODO(jmarantz): rename this class to something more generic, like RenameUrlFilter or ProxyUrlFilter.
virtual bool net_instaweb::CacheExtender::ComputeOnTheFly |
( |
| ) |
const |
|
protectedvirtual |
If this method returns true, the data output of this filter will not be cached, and will instead be recomputed on the fly every time it is needed. (However, the transformed URL and similar metadata in CachedResult will be kept in cache).
The default implementation returns false.
Reimplemented from net_instaweb::RewriteFilter.