15 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_DOWNSTREAM_CACHING_DIRECTIVES_H_
16 #define NET_INSTAWEB_REWRITER_PUBLIC_DOWNSTREAM_CACHING_DIRECTIVES_H_
18 #include "pagespeed/kernel/base/basictypes.h"
19 #include "pagespeed/kernel/base/gtest_prod.h"
20 #include "pagespeed/kernel/base/string.h"
22 namespace net_instaweb {
43 const RequestHeaders& request_headers);
48 bool SupportsLazyloadImages()
const;
52 bool SupportsWebp()
const;
53 bool SupportsWebpLosslessAlpha()
const;
70 static bool IsPropertySupported(LazyBool* supports_property,
71 const GoogleString& capability,
72 const GoogleString& capability_list);
74 mutable LazyBool supports_image_inlining_;
75 mutable LazyBool supports_js_defer_;
76 mutable LazyBool supports_lazyload_images_;
77 mutable LazyBool supports_webp_;
78 mutable LazyBool supports_webp_lossless_alpha_;
80 GoogleString capabilities_to_be_supported_;
bool SupportsJsDefer() const
bool SupportsImageInlining() const
Definition: downstream_caching_directives.h:31
void ParseCapabilityListFromRequestHeaders(const RequestHeaders &request_headers)
static const char kNoCapabilitiesSpecified[]
Definition: downstream_caching_directives.h:35