1 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_DATA_URL_INPUT_RESOURCE_H_
2 #define NET_INSTAWEB_REWRITER_PUBLIC_DATA_URL_INPUT_RESOURCE_H_
26 #include "net/instaweb/http/public/request_context.h"
28 #include "pagespeed/kernel/base/basictypes.h"
29 #include "pagespeed/kernel/base/scoped_ptr.h"
30 #include "pagespeed/kernel/base/string.h"
31 #include "pagespeed/kernel/base/string_util.h"
32 #include "pagespeed/kernel/http/data_url.h"
34 namespace net_instaweb {
47 const ContentType* type;
49 StringPiece encoded_contents;
53 GoogleString* url_copy =
new GoogleString();
54 url.CopyToString(url_copy);
55 if (ParseDataUrl(*url_copy, &type, &encoding, &encoded_contents)) {
57 encoded_contents, driver));
70 virtual GoogleString
url()
const {
return *url_.get(); }
76 const RequestContextPtr& request_context,
77 AsyncCallback* callback);
82 const ContentType* type,
83 const StringPiece& encoded_contents,
86 scoped_ptr<const GoogleString> url_;
87 const Encoding encoding_;
88 const StringPiece encoded_contents_;
89 GoogleString decoded_contents_;
Definition: resource.h:56
NotCacheablePolicy
Definition: resource.h:67
Definition: rewrite_driver.h:98