A place storing a rewritable URL inside a CSS AST.
More...
#include "css_resource_slot.h"
|
| CssResourceSlot (const ResourcePtr &resource, const GoogleUrl &trim_url, const RewriteOptions *options, Css::Values *values, size_t value_index) |
|
| REFCOUNT_FRIEND_DECLARATION (CssResourceSlot) |
|
| REFCOUNT_FRIEND_DECLARATION (ResourceSlot) |
|
|
class | CssResourceSlotFactory |
|
A place storing a rewritable URL inside a CSS AST.
virtual bool net_instaweb::CssResourceSlot::CanDirectSetUrl |
( |
| ) |
|
|
inlinevirtual |
virtual bool net_instaweb::CssResourceSlot::DirectSetUrl |
( |
const StringPiece & |
url | ) |
|
|
virtual |
Update the URL in the slot target without touching the resource. This is intended for when we're inlining things as data: URLs and also for placing the rewritten version of the URL in the slot. The method returns true if it successfully updates the slot target. Resources that are not explicitly authorized will get rejected at this point. Note that if you call this you should also call set_disable_rendering(true), or otherwise the result will be overwritten. Does not alter the URL in any way. Not supported on all slot types — presently only slots representing things within CSS and HTML have this operation (others will DCHECK-fail). Must be called from within a context's Render() method.
Reimplemented from net_instaweb::ResourceSlot.
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 |
( |
| ) |
const |
|
virtual |
virtual void net_instaweb::CssResourceSlot::Render |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: