Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Attributes | List of all members
net_instaweb::InPlaceRewriteResourceSlot Class Reference

#include "in_place_rewrite_context.h"

Inheritance diagram for net_instaweb::InPlaceRewriteResourceSlot:
net_instaweb::ResourceSlot net_instaweb::RefCounted< ResourceSlot >

Public Member Functions

 InPlaceRewriteResourceSlot (const ResourcePtr &resource)
 
virtual HtmlElementelement () const
 Return HTML element associated with slot, or NULL if none (CSS, IPRO)
 
virtual void Render ()
 Implements ResourceSlot::Render().
 
virtual GoogleString LocationString () const
 Implements ResourceSlot::LocationString().
 
- Public Member Functions inherited from net_instaweb::ResourceSlot
 ResourceSlot (const ResourcePtr &resource)
 
ResourcePtr resource () const
 
void SetResource (const ResourcePtr &resource)
 
void set_preserve_urls (bool x)
 
bool preserve_urls () const
 
void set_disable_rendering (bool x)
 
bool disable_rendering () const
 
void RequestDeleteElement ()
 
bool should_delete_element () const
 
bool was_optimized () const
 
void set_was_optimized (bool x)
 Marks the slot as having been optimized.
 
void set_disable_further_processing (bool x)
 
bool disable_further_processing () const
 
void set_need_aggregate_input_info (bool x)
 
bool need_aggregate_input_info () const
 
void ReportInput (const InputInfo &input)
 
const std::vector< InputInfo > * inputs () const
 may be nullptr.
 
virtual void Finished ()
 
virtual bool DirectSetUrl (const StringPiece &url)
 
virtual bool CanDirectSetUrl ()
 
RewriteContextLastContext () const
 
void AddContext (RewriteContext *context)
 Adds a new context to this slot.
 
void DetachContext (RewriteContext *context)
 
- Public Member Functions inherited from net_instaweb::RefCounted< ResourceSlot >
void Release ()
 
void AddRef ()
 
bool HasOneRef ()
 

Static Public Attributes

static const char kIproSlotLocation []
 

Additional Inherited Members

- Static Public Member Functions inherited from net_instaweb::ResourceSlot
static GoogleString RelativizeOrPassthrough (const RewriteOptions *options, StringPiece url, UrlRelativity url_relativity, const GoogleUrl &base_url)
 
- Protected Member Functions inherited from net_instaweb::ResourceSlot
 REFCOUNT_FRIEND_DECLARATION (ResourceSlot)
 

Detailed Description

A resource-slot created for an in-place rewrite. This has an empty render method. Note that this class is usually used as a RefCountedPtr and gets deleted when there are no references remaining.


The documentation for this class was generated from the following file: