19 #ifndef PAGESPEED_KERNEL_HTTP_DATA_URL_H_
20 #define PAGESPEED_KERNEL_HTTP_DATA_URL_H_
25 namespace net_instaweb {
60 const ContentType** content_type,
62 StringPiece* encoded_content);
64 bool DecodeDataUrlContent(
Encoding encoding,
65 const StringPiece& encoded_content,
bool ParseDataUrl(const StringPiece &url, const ContentType **content_type, Encoding *encoding, StringPiece *encoded_content)
Definition: data_url.h:33
Used only for output of ParseDataUrl.
Definition: data_url.h:29
void DataUrl(const ContentType &content_type, const Encoding encoding, const StringPiece &content, GoogleString *result)
Encoding
Definition: data_url.h:28
bool IsDataImageUrl(const StringPiece url)
Determine if the given URL is a data:image URL (aka an inlined image).
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
bool IsDataUrl(const StringPiece url)
Determine if the given URL is a data: URL. Cheaper than ParseDataUrl.