18 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_INSERT_DNS_PREFETCH_FILTER_H_
19 #define NET_INSTAWEB_REWRITER_PUBLIC_INSERT_DNS_PREFETCH_FILTER_H_
26 namespace net_instaweb {
40 virtual void StartElementImpl(
HtmlElement* element);
43 virtual const char*
Name()
const {
return "InsertDnsPrefetchFilter"; }
47 virtual const char* id()
const {
return "idp"; }
54 void MarkAlreadyInHead(HtmlElement::Attribute* urlattr);
59 bool IsDomainListStable(
const FlushEarlyInfo& flush_early_info)
const;
60 void DebugPrint(
const char* msg);
64 bool dns_prefetch_inserted_;
71 StringSet domains_to_ignore_;
75 StringSet domains_in_body_;
79 StringVector dns_prefetch_domains_;
82 bool user_agent_supports_dns_prefetch_;
Definition: common_filter.h:47
virtual void StartDocumentImpl()
virtual const char * Name() const
The name of this filter – used for logging and debugging.
Definition: insert_dns_prefetch_filter.h:43
Definition: html_element.h:42
virtual void DetermineEnabled(GoogleString *disabled_reason)
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: insert_dns_prefetch_filter.h:33
Definition: rewrite_driver.h:100
virtual void EndDocument()