19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_FILE_LOAD_POLICY_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_FILE_LOAD_POLICY_H_
28 namespace net_instaweb {
31 class FileLoadMapping;
58 virtual void Associate(StringPiece url_prefix, StringPiece filename_prefix);
75 StringPiece filename_prefix,
115 virtual bool ShouldLoadFromFileHelper(
const GoogleUrl& url,
119 typedef std::list<FileLoadMapping*> FileLoadMappings;
120 FileLoadMappings file_load_mappings_;
121 typedef std::list<FileLoadRule*> FileLoadRules;
122 FileLoadRules file_load_rules_;
class GoogleUrl
Definition: google_url.h:58
virtual void Merge(const FileLoadPolicy &other)
Merge in other policies (needed for rewrite_options).
virtual bool ShouldLoadFromFile(const GoogleUrl &url, GoogleString *filename) const
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: file_load_policy.h:41
virtual void Associate(StringPiece url_prefix, StringPiece filename_prefix)
virtual bool AssociateRegexp(StringPiece url_regexp, StringPiece filename_prefix, GoogleString *error)
virtual bool AddRule(const GoogleString &rule, bool is_regexp, bool allowed, GoogleString *error)