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 {
45 const ContentType* type;
47 StringPiece encoded_contents;
51 GoogleString* url_copy =
new GoogleString();
52 url.CopyToString(url_copy);
53 if (ParseDataUrl(*url_copy, &type, &encoding, &encoded_contents)) {
55 encoded_contents, driver));
68 virtual GoogleString
url()
const {
return *url_.get(); }
74 const RequestContextPtr& request_context,
75 AsyncCallback* callback);
80 const ContentType* type,
81 const StringPiece& encoded_contents,
84 scoped_ptr<const GoogleString> url_;
85 const Encoding encoding_;
86 const StringPiece encoded_contents_;
87 GoogleString decoded_contents_;
Definition: resource.h:57
NotCacheablePolicy
Definition: resource.h:68
Definition: rewrite_driver.h:98