Page Speed Optimization Libraries  1.12.34.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
net_instaweb::InlineOutputResource Class Reference
Inheritance diagram for net_instaweb::InlineOutputResource:
net_instaweb::OutputResource net_instaweb::Resource net_instaweb::RefCounted< Resource >

Public Member Functions

virtual bool has_url () const
 Inline resources have no URL.
 
virtual GoogleString url () const
 
virtual GoogleString UrlForDebug () const
 Override if resource does not have a URL.
 
virtual GoogleString cache_key () const
 
- Public Member Functions inherited from net_instaweb::OutputResource
 OutputResource (const RewriteDriver *driver, StringPiece resolved_base, StringPiece unmapped_base, StringPiece original_base, const ResourceNamer &resource_id, OutputResourceKind kind)
 
virtual void LoadAndCallback (NotCacheablePolicy not_cacheable_policy, const RequestContextPtr &request_context, AsyncCallback *callback)
 
GoogleString UrlEvenIfHashNotSet ()
 
void DumpToDisk (MessageHandler *handler)
 
void UpdateCachedResultPreservingInputInfo (CachedResult *to_update) const
 
virtual GoogleString name_key () const
 
GoogleString HttpCacheKey () const
 
const GoogleStringresolved_base () const
 output-specific
 
const GoogleStringunmapped_base () const
 
const GoogleStringoriginal_base () const
 
const ResourceNamerfull_name () const
 
ResourceNamermutable_full_name ()
 
StringPiece name () const
 
StringPiece experiment () const
 
StringPiece suffix () const
 
StringPiece filter_prefix () const
 
StringPiece hash () const
 
StringPiece signature () const
 
bool has_hash () const
 
void clear_hash ()
 
GoogleString decoded_base () const
 
bool IsWritten () const
 
virtual void SetType (const ContentType *type)
 Sets the type of the output resource, and thus also its suffix.
 
const CachedResult * cached_result () const
 
CachedResult * EnsureCachedResultCreated ()
 
void clear_cached_result ()
 
void set_cached_result (CachedResult *cached_result)
 
OutputResourceKind kind () const
 
void SetWritten (bool written)
 This is called by CacheCallback::Done in rewrite_driver.cc.
 
virtual const RewriteOptionsrewrite_options () const
 
WriterBeginWrite (MessageHandler *message_handler)
 
void EndWrite (MessageHandler *message_handler)
 
virtual bool UseHttpCache () const
 
const GoogleStringcache_control_suffix () const
 
void set_cache_control_suffix (const GoogleString &x)
 
- Public Member Functions inherited from net_instaweb::Resource
 Resource (const RewriteDriver *driver, const ContentType *type)
 
ServerContextserver_context () const
 Common methods across all deriviations.
 
virtual bool IsValidAndCacheable () const
 
bool is_authorized_domain ()
 
void set_is_authorized_domain (bool is_authorized)
 
bool IsSafeToRewrite (bool rewrite_uncacheable, GoogleString *reason) const
 
bool IsSafeToRewrite (bool rewrite_uncacheable) const
 
bool loaded () const
 
bool HttpStatusOk () const
 
void LoadAsync (NotCacheablePolicy not_cacheable_policy, const RequestContextPtr &request_context, AsyncCallback *callback)
 
virtual void RefreshIfImminentlyExpiring ()
 
GoogleString ContentsHash () const
 
void AddInputInfoToPartition (HashHint suggest_include_content_hash, int index, CachedResult *partition)
 
virtual void FillInPartitionInputInfo (HashHint suggest_include_content_hash, InputInfo *input)
 
void FillInPartitionInputInfoFromResponseHeaders (const ResponseHeaders &headers, InputInfo *input)
 
int64 CacheExpirationTimeMs () const
 
StringPiece ExtractUncompressedContents () const
 
size_t UncompressedContentsSize () const
 
StringPiece raw_contents () const
 
ResponseHeadersresponse_headers ()
 
const ResponseHeadersresponse_headers () const
 
const ContentTypetype () const
 
bool IsContentsEmpty () const
 
StringPiece charset () const
 Note: this is empty if the header is not specified.
 
void set_charset (StringPiece c)
 
void DetermineContentType ()
 
bool Link (HTTPValue *source, MessageHandler *handler)
 
virtual void Freshen (FreshenCallback *callback, MessageHandler *handler)
 
void LinkFallbackValue (HTTPValue *value)
 Links the stale fallback value that can be used in case a fetch fails.
 
void set_is_background_fetch (bool x)
 
bool is_background_fetch () const
 
FetchResponseStatus fetch_response_status ()
 
void set_fetch_response_status (FetchResponseStatus x)
 
- Public Member Functions inherited from net_instaweb::RefCounted< Resource >
void Release ()
 
void AddRef ()
 
bool HasOneRef ()
 

Static Public Member Functions

static OutputResourcePtr MakeInlineOutputResource (const RewriteDriver *driver)
 

Additional Inherited Members

- Public Types inherited from net_instaweb::Resource
enum  HashHint { kOmitInputHash, kIncludeInputHash }
 
enum  NotCacheablePolicy { kLoadEvenIfNotCacheable, kReportFailureIfNotCacheable }
 
- Protected Member Functions inherited from net_instaweb::OutputResource
 REFCOUNT_FRIEND_DECLARATION (OutputResource)
 
- Protected Member Functions inherited from net_instaweb::Resource
 REFCOUNT_FRIEND_DECLARATION (Resource)
 
void set_enable_cache_purge (bool x)
 
ResponseHeaders::VaryOption respect_vary () const
 
void set_respect_vary (ResponseHeaders::VaryOption x)
 
void set_proactive_resource_freshening (bool x)
 
void set_disable_rewrite_on_no_transform (bool x)
 
- Protected Attributes inherited from net_instaweb::Resource
ServerContextserver_context_
 
const ContentTypetype_
 
GoogleString charset_
 
HTTPValue value_
 contains contents and meta-data
 
ResponseHeaders response_headers_
 
HTTPValue fallback_value_
 

Member Function Documentation

virtual GoogleString net_instaweb::InlineOutputResource::cache_key ( ) const
virtual

Gets the cache key for resource. This may be different from URL if the resource is e.g. UA-dependent.

Reimplemented from net_instaweb::Resource.

virtual GoogleString net_instaweb::InlineOutputResource::url ( ) const
virtual

NOTE: url() will crash if resource has does not have a hash set yet. Specifically, this will occur if the resource has not been completely written yet. Before that point, the final URL cannot be known.

Note: the OutputResource will never have a query string, even when ModPagespeedAddOptionsToUrls is on.

Reimplemented from net_instaweb::OutputResource.


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