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

Unified Diff: chrome/service/cloud_print/cloud_print_url_fetcher.h

Issue 8387011: Chrome proxy refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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: chrome/service/cloud_print/cloud_print_url_fetcher.h
===================================================================
--- chrome/service/cloud_print/cloud_print_url_fetcher.h (revision 107156)
+++ chrome/service/cloud_print/cloud_print_url_fetcher.h (working copy)
@@ -38,6 +38,7 @@
STOP_PROCESSING,
RETRY_REQUEST,
};
+
class Delegate {
public:
virtual ~Delegate() { }
@@ -80,10 +81,20 @@
virtual void OnRequestGiveUp() { }
// Invoked when the request returns a 403 error (applicable only when
// HandleRawResponse returns CONTINUE_PROCESSING).
- virtual void OnRequestAuthError() = 0;
+ // Returning RETRY_REQUEST will retry current request. (auth information
+ // may have been updated and new info is available through the
+ // Authenticator interface).
+ // Returning CONTINUE_PROCESSING will treat auth error as a network error.
+ virtual ResponseAction OnRequestAuthError() = 0;
+
+ // Authentication information may change between retries.
+ // CloudPrintURLFetcher will request auth info before sending any request.
+ virtual std::string GetAuthHeader() = 0;
};
CloudPrintURLFetcher();
+ bool IsSameRequest(const content::URLFetcher* source);
+
void StartGetRequest(const GURL& url,
Delegate* delegate,
int max_retries,
« no previous file with comments | « chrome/service/cloud_print/cloud_print_token_store_unittest.cc ('k') | chrome/service/cloud_print/cloud_print_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698