Page Speed Optimization Libraries
1.2.24.1
|
#include "insert_dns_prefetch_filter.h"
Public Member Functions | |
InsertDnsPrefetchFilter (RewriteDriver *driver) | |
virtual void | StartDocumentImpl () |
virtual void | EndDocument () |
Note: EndDocument will be called imediately before the last Flush call. | |
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 void | DetermineEnabled () |
virtual const char * | id () const |
Injects <link rel="dns-prefetch" href="//www.example.com"> tags in the HEAD to enable the browser to do DNS prefetching.
virtual void net_instaweb::InsertDnsPrefetchFilter::DetermineEnabled | ( | ) | [virtual] |
Override DetermineEnabled to enable writing of the property cache DOM cohort in the RewriteDriver.
Reimplemented from net_instaweb::EmptyHtmlFilter.
virtual void net_instaweb::InsertDnsPrefetchFilter::StartDocumentImpl | ( | ) | [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.