17 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_URL_PARTNERSHIP_H_
18 #define NET_INSTAWEB_REWRITER_PUBLIC_URL_PARTNERSHIP_H_
22 #include "pagespeed/kernel/base/basictypes.h"
23 #include "pagespeed/kernel/base/string.h"
24 #include "pagespeed/kernel/base/string_util.h"
25 #include "pagespeed/kernel/http/google_url.h"
27 namespace net_instaweb {
48 bool AddUrl(
const StringPiece& resource_url, MessageHandler* handler);
55 int num_urls()
const {
return url_vector_.size(); }
62 const GoogleUrl*
FullPath(
int index)
const {
return url_vector_[index]; }
70 virtual void Reset(
const GoogleUrl& original_request);
86 MessageHandler* handler);
89 const RewriteOptions* rewrite_options()
const {
return rewrite_options_; }
95 void IncrementalResolve(
int index);
97 typedef std::vector<GoogleUrl*> GurlVector;
98 GurlVector url_vector_;
99 GoogleString domain_and_path_prefix_;
100 const RewriteOptions* rewrite_options_;
101 const UrlNamer* url_namer_;
102 GoogleUrl original_origin_and_path_;
106 StringVector common_components_;
Definition: url_namer.h:38
static bool FindResourceDomain(const GoogleUrl &base_url, const UrlNamer *url_namer, const RewriteOptions *rewrite_options, GoogleUrl *resource, GoogleString *domain, MessageHandler *handler)
const GoogleUrl * FullPath(int index) const
Returns the full resolved path.
Definition: url_partnership.h:62
Definition: url_partnership.h:41
int num_urls() const
Returns the number of URLs that have been successfully added.
Definition: url_partnership.h:55
bool AddUrl(const StringPiece &resource_url, MessageHandler *handler)
GoogleString RelativePath(int index) const
int NumCommonComponents() const
Definition: url_partnership.h:74
virtual void Reset(const GoogleUrl &original_request)
Definition: rewrite_driver.h:98
GoogleString ResolvedBase() const
void RemoveLast()
Removes the last URL that was added to the partnership.
Definition: rewrite_options.h:84