A place storing a rewritable URL inside a CSS AST. More...
#include "css_resource_slot.h"
Public Member Functions | |
virtual void | Render () |
virtual void | Finished () |
virtual GoogleString | LocationString () |
Css::Values * | values () const |
size_t | value_index () const |
void | EnableTrim (const GoogleUrl &base_url) |
Enables trimming of URLs versus a given base. | |
void | UpdateUrlInCss (const StringPiece &url) |
Protected Member Functions | |
CssResourceSlot (const ResourcePtr &resource, Css::Values *values, size_t value_index) | |
REFCOUNT_FRIEND_DECLARATION (CssResourceSlot) | |
Friends | |
class | CssResourceSlotFactory |
A place storing a rewritable URL inside a CSS AST.
virtual void net_instaweb::CssResourceSlot::Finished | ( | ) | [virtual] |
Called after all contexts have had a chance to Render. This is especially useful for cases where Render was never called but you want something to be done to all slots.
Reimplemented from net_instaweb::ResourceSlot.
virtual GoogleString net_instaweb::CssResourceSlot::LocationString | ( | ) | [virtual] |
Returns a human-readable description of where this slot occurs, for use in log messages.
Implements net_instaweb::ResourceSlot.
virtual void net_instaweb::CssResourceSlot::Render | ( | ) | [virtual] |
Render is not thread-safe. This must be called from the thread that owns the DOM or CSS file.
Implements net_instaweb::ResourceSlot.
void net_instaweb::CssResourceSlot::UpdateUrlInCss | ( | const StringPiece & | url | ) |
Update the resource slot's url, without doing any absolutification or trimming.