17 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_URL_PARTNERSHIP_H_
18 #define NET_INSTAWEB_REWRITER_PUBLIC_URL_PARTNERSHIP_H_
27 namespace net_instaweb {
55 int num_urls()
const {
return url_vector_.size(); }
89 const RewriteOptions* rewrite_options()
const {
return rewrite_options_; }
95 void IncrementalResolve(
int index);
97 typedef std::vector<GoogleUrl*> GurlVector;
98 GurlVector url_vector_;
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)
class GoogleUrl
Definition: google_url.h:58
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)
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: rewrite_driver.h:100
GoogleString ResolvedBase() const
Definition: message_handler.h:39
void RemoveLast()
Removes the last URL that was added to the partnership.
Definition: rewrite_options.h:84