17 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_URL_PARTNERSHIP_H_
18 #define NET_INSTAWEB_REWRITER_PUBLIC_URL_PARTNERSHIP_H_
23 #include "net/instaweb/util/public/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);
77 const RewriteOptions* rewrite_options()
const {
return rewrite_options_; }
83 void IncrementalResolve(
int index);
89 bool FindResourceDomain(GoogleUrl* resource,
91 MessageHandler* handler)
const;
93 typedef std::vector<GoogleUrl*> GurlVector;
94 GurlVector url_vector_;
95 GoogleString domain_and_path_prefix_;
96 const RewriteOptions* rewrite_options_;
97 const UrlNamer* url_namer_;
98 GoogleUrl original_origin_and_path_;
102 StringVector common_components_;
104 DISALLOW_COPY_AND_ASSIGN(UrlPartnership);
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:81