19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_ASSOCIATION_TRANSFORMER_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_ASSOCIATION_TRANSFORMER_H_
32 namespace net_instaweb {
57 : base_url_(base_url), options_(options),
58 backup_transformer_(backup_transformer), handler_(handler) {}
64 StringStringMap*
map() {
return &map_; }
86 FRIEND_TEST(AssociationTransformerTest, TransformsCorrectly);
100 StringStringMap* map,
const StringPiece& key)
102 key.CopyToString(&key_);
112 if (!resource()->is_authorized_domain()) {
115 if (!disable_rendering() && !preserve_urls()) {
116 (*map_)[key_] = resource()->
url();
122 if (!resource()->is_authorized_domain()) {
125 url.CopyToString(&((*map_)[key_]));
136 StringStringMap* map_;
class GoogleUrl
Definition: google_url.h:58
AssociationSlot(ResourcePtr resource, StringStringMap *map, const StringPiece &key)
Note: map must outlive AssociationSlot.
Definition: association_transformer.h:99
virtual void Render()
Definition: association_transformer.h:110
Definition: resource_slot.h:54
Definition: html_element.h:42
Definition: association_transformer.h:96
virtual GoogleString url() const =0
Gets the absolute URL of the resource.
virtual bool DirectSetUrl(const StringPiece &url)
Definition: association_transformer.h:120
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual GoogleString LocationString() const
Definition: association_transformer.h:129
Definition: message_handler.h:39
virtual HtmlElement * element() const
Return HTML element associated with slot, or NULL if none (CSS, IPRO)
Definition: association_transformer.h:106
Definition: rewrite_options.h:84