Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: shell/application_manager/fetcher.h

Issue 951643002: Register application connections under their post-redirect URL. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cleanup Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: shell/application_manager/fetcher.h
diff --git a/shell/application_manager/fetcher.h b/shell/application_manager/fetcher.h
index aaff96529e1ee0607ef1bfb471d9d38e1b9cb017..b9e9de5b830d7fdc56d81d1c20cf65aa24092b8a 100644
--- a/shell/application_manager/fetcher.h
+++ b/shell/application_manager/fetcher.h
@@ -40,6 +40,13 @@ class Fetcher {
Fetcher(const FetchCallback& fetch_callback);
virtual ~Fetcher();
+ // Returns the original URL that was fetched.
+ virtual const GURL& GetURL() const = 0;
+
+ // If the fetch resulted in a redirect, this returns the final URL after all
+ // redirects. Otherwise, it returns an empty URL.
+ virtual GURL GetRedirectURL() const = 0;
+
virtual URLResponsePtr AsURLResponse(base::TaskRunner* task_runner,
uint32_t skip) = 0;

Powered by Google App Engine
This is Rietveld 408576698