19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_IMAGE_COMBINE_FILTER_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_IMAGE_COMBINE_FILTER_H_
37 namespace net_instaweb {
45 class UrlSegmentEncoder;
80 Css::Declarations* decls,
89 const StringPiece& css_text);
97 virtual const char*
Name()
const {
return "ImageCombine"; }
99 virtual void StartElementImpl(
HtmlElement* element) {}
100 virtual void EndElementImpl(HtmlElement* element) {}
103 virtual const char*
id()
const {
return RewriteOptions::kImageCombineId; }
111 const StringPiece& css_text);
112 bool GetDeclarationDimensions(Css::Declarations* declarations,
113 int* width,
int* height);
114 void AddFilesReducedStat(
int reduced);
116 Variable* image_file_count_reduction_;
class GoogleUrl
Definition: google_url.h:58
void Reset(RewriteContext *context, const GoogleUrl &css_url, const StringPiece &css_text)
Creates a new context for doing spriting, but does not register it.
Context used by CssFilter under async flow.
Definition: css_filter.h:251
Definition: url_multipart_encoder.h:45
virtual const char * id() const
Image rewriting was originally, but is no longer, a single CSS.
Definition: image_combine_filter.h:103
virtual void StartDocumentImpl()
Definition: image_combine_filter.h:98
void RegisterOrReleaseContext()
bool AddCssBackgroundContext(const GoogleUrl &original_url, const GoogleUrl &base_url, Css::Values *values, int value_index, CssFilter::Context *parent, Css::Declarations *decls, bool *is_authorized, MessageHandler *handler)
Definition: statistics.h:43
virtual const UrlSegmentEncoder * encoder() const
Definition: image_combine_filter.h:96
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
Definition: html_element.h:42
Definition: rewrite_filter.h:35
Definition: rewrite_driver.h:100
OutputResourcePtr MakeOutput()
Create the combination with the current combiner.
Definition: rewrite_context.h:155
Definition: url_segment_encoder.h:33
Definition: message_handler.h:39
virtual const char * Name() const
The name of this filter – used for logging and debugging.
Definition: image_combine_filter.h:97
Definition: image_combine_filter.h:58
const GoogleUrl & base_url() const
Getters.