Page Speed Optimization Libraries
1.9.32.2
|
#include "rewrite_context_test_base.h"
Classes | |
class | Context |
class | NestedSlot |
Public Member Functions | |
NestedFilter (RewriteDriver *driver, SimpleTextFilter *upper_filter, UpperCaseRewriter *upper_rewriter, bool expected_nested_result) | |
int | num_top_rewrites () const |
Stats. | |
int | num_sub_rewrites () const |
void | ClearStats () |
void | set_chain (bool x) |
Set this to true to create a chain of nested rewrites on the same slot. | |
bool | expected_nested_rewrite_result () const |
void | set_expected_nested_rewrite_result (bool x) |
void | set_check_nested_rewrite_result (bool x) |
![]() | |
RewriteFilter (RewriteDriver *driver) | |
virtual void | DetermineEnabled (GoogleString *disabled_reason) |
virtual const UrlSegmentEncoder * | encoder () const |
virtual bool | ComputeOnTheFly () 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, bool *is_authorized) |
ResourcePtr | CreateInputResourceOrInsertDebugComment (StringPiece input_url, HtmlElement *element) |
void | ResolveUrl (StringPiece input_url, GoogleUrl *out_url) |
bool | BaseUrlIsValid () const |
bool | DebugMode () const |
bool | CanAddPagespeedOnloadToImage (const HtmlElement &) |
virtual void | LogFilterModifiedContent () |
virtual RewriteDriver::InlineAuthorizationPolicy | AllowUnauthorizedDomain () const |
virtual bool | IntendedForInlining () const |
Static Public Attributes | |
static const bool | kExpectNestedRewritesSucceed = true |
For use with NestedFilter constructor. | |
static const bool | kExpectNestedRewritesFail = false |
static const char | kFilterId [] |
![]() | |
static const char | kCreateResourceFailedDebugMsg [] |
Debug message to be inserted when resource creation fails. | |
Protected Member Functions | |
RewriteContext * | MakeRewriteContext () |
void | StartElementImpl (HtmlElement *element) |
SimpleTextFilter * | upper_filter () |
virtual const char * | id () const |
virtual const char * | Name () const |
virtual void | StartDocumentImpl () |
virtual void | EndElementImpl (HtmlElement *element) |
![]() | |
virtual const char * | LoggingId () |
This class logs using id(). | |
![]() | |
ServerContext * | server_context () const |
const RewriteOptions * | rewrite_options () |
Additional Inherited Members | |
![]() | |
static StringPiece | GetCharsetForScript (const Resource *script, const StringPiece attribute_charset, const StringPiece enclosing_charset) |
static GoogleString | GetCharsetForStylesheet (const Resource *stylesheet, const StringPiece attribute_charset, const StringPiece enclosing_charset) |
![]() | |
static bool | ExtractMetaTagDetails (const HtmlElement &element, const ResponseHeaders *headers, GoogleString *content, GoogleString *mime_type, GoogleString *charset) |
Filter that contains nested resources that must themselves be rewritten.
|
inlineprotectedvirtual |
Generates a RewriteContext appropriate for this filter. Default implementation returns NULL. This must be overridden by filters. This is used to implement Fetch.
Reimplemented from net_instaweb::RewriteFilter.
|
inlineprotectedvirtual |
Overload these implementer methods: Intentionally left abstract so that implementers don't forget to change the name from Blah to BlahImpl.
Implements net_instaweb::CommonFilter.