19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_FILE_LOAD_MAPPING_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_FILE_LOAD_MAPPING_H_
22 #include "pagespeed/kernel/base/basictypes.h"
23 #include "pagespeed/kernel/base/manually_ref_counted.h"
24 #include "pagespeed/kernel/base/string.h"
25 #include "pagespeed/kernel/base/string_util.h"
26 #include "pagespeed/kernel/util/re2.h"
28 namespace net_instaweb {
38 virtual bool Substitute(
const StringPiece& url,
39 GoogleString* filename)
const = 0;
45 const GoogleString& filename_prefix)
46 : url_regexp_(url_regexp),
47 url_regexp_str_(url_regexp),
48 filename_prefix_(filename_prefix) {}
50 virtual bool Substitute(
const StringPiece& url, GoogleString* filename)
const;
53 const RE2 url_regexp_;
55 const GoogleString url_regexp_str_;
56 const GoogleString filename_prefix_;
64 const GoogleString& filename_prefix)
65 : url_prefix_(url_prefix),
66 filename_prefix_(filename_prefix) {}
68 virtual bool Substitute(
const StringPiece& url, GoogleString* filename)
const;
71 const GoogleString url_prefix_;
72 const GoogleString filename_prefix_;
Definition: file_load_mapping.h:32
Definition: file_load_mapping.h:61
virtual bool Substitute(const StringPiece &url, GoogleString *filename) const =0
Definition: file_load_mapping.h:42
virtual bool Substitute(const StringPiece &url, GoogleString *filename) const
virtual bool Substitute(const StringPiece &url, GoogleString *filename) const