Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Enumerations | Functions
data_url.h File Reference
#include "pagespeed/kernel/base/string.h"
#include "pagespeed/kernel/base/string_util.h"

Go to the source code of this file.

Namespaces

 net_instaweb
 Unit-test framework for wget fetcher.
 

Enumerations

enum  net_instaweb::Encoding { net_instaweb::UNKNOWN, BASE64, net_instaweb::PLAIN }
 

Functions

void net_instaweb::DataUrl (const ContentType &content_type, const Encoding encoding, const StringPiece &content, GoogleString *result)
 
bool net_instaweb::IsDataUrl (const StringPiece url)
 Determine if the given URL is a data: URL. Cheaper than ParseDataUrl.
 
bool net_instaweb::IsDataImageUrl (const StringPiece url)
 Determine if the given URL is a data:image URL (aka an inlined image).
 
bool net_instaweb::ParseDataUrl (const StringPiece &url, const ContentType **content_type, Encoding *encoding, StringPiece *encoded_content)
 
bool net_instaweb::DecodeDataUrlContent (Encoding encoding, const StringPiece &encoded_content, GoogleString *decoded_content)