17 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_INSERT_AMP_LINK_FILTER_H_
18 #define NET_INSTAWEB_REWRITER_PUBLIC_INSERT_AMP_LINK_FILTER_H_
27 namespace net_instaweb {
36 void StartElementImpl(
HtmlElement* element)
override;
40 const char*
Name()
const override {
return "InsertAmpLink"; }
Definition: common_filter.h:47
void StartDocumentImpl() override
Inserts a <link rel="amphtml"> link.
Definition: insert_amp_link_filter.h:30
ScriptUsage GetScriptUsage() const override
Definition: insert_amp_link_filter.h:45
Definition: html_element.h:42
void DetermineEnabled(GoogleString *disabled_reason) override
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
ScriptUsage
Describes a filter's relationship with scripts.
Definition: html_filter.h:38
const char * Name() const override
The name of this filter – used for logging and debugging.
Definition: insert_amp_link_filter.h:40
Definition: rewrite_driver.h:100
Definition: html_filter.h:43