Page Speed Optimization Libraries
1.2.24.1
|
#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) |
Static Public Attributes | |
static const bool | kExpectNestedRewritesSucceed = true |
For use with NestedFilter constructor. | |
static const bool | kExpectNestedRewritesFail = false |
static const char | kFilterId [] |
Protected Member Functions | |
RewriteContext * | MakeRewriteContext () |
void | StartElementImpl (HtmlElement *element) |
SimpleTextFilter * | upper_filter () |
virtual const char * | id () const |
virtual const char * | Name () const |
The name of this filter -- used for logging and debugging. | |
virtual void | StartDocumentImpl () |
virtual void | EndElementImpl (HtmlElement *element) |
Filter that contains nested resources that must themselves be rewritten.
RewriteContext* net_instaweb::NestedFilter::MakeRewriteContext | ( | ) | [inline, protected, virtual] |
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.
virtual void net_instaweb::NestedFilter::StartDocumentImpl | ( | ) | [inline, protected, virtual] |
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.