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

Unified Diff: chrome/browser/chromeos/login/oauth2_policy_fetcher.h

Issue 11969010: Fixed OAuth2 policy fetching retry logic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/oauth2_policy_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/oauth2_policy_fetcher.h
diff --git a/chrome/browser/chromeos/login/oauth2_policy_fetcher.h b/chrome/browser/chromeos/login/oauth2_policy_fetcher.h
index 68688aaf4a77820e0ea0169d5c1bc74ee151b739..2376fb3bd9c78f319bceb0617d79588085153218 100644
--- a/chrome/browser/chromeos/login/oauth2_policy_fetcher.h
+++ b/chrome/browser/chromeos/login/oauth2_policy_fetcher.h
@@ -10,18 +10,16 @@
#include "base/basictypes.h"
#include "base/callback_forward.h"
#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "google_apis/gaia/gaia_auth_consumer.h"
#include "google_apis/gaia/oauth2_access_token_consumer.h"
+#include "net/url_request/url_request_context_getter.h"
class GaiaAuthFetcher;
class OAuth2AccessTokenFetcher;
-namespace net {
-class URLRequestContextGetter;
-}
-
namespace chromeos {
// Fetches the OAuth2 token for the device management service. Since Profile
@@ -90,6 +88,8 @@ class OAuth2PolicyFetcher : public base::SupportsWeakPtr<OAuth2PolicyFetcher>,
void RetryOnError(const GoogleServiceAuthError& error,
const base::Closure& task);
+ scoped_refptr<net::URLRequestContextGetter> auth_context_getter_;
+ scoped_refptr<net::URLRequestContextGetter> system_context_getter_;
scoped_ptr<GaiaAuthFetcher> refresh_token_fetcher_;
scoped_ptr<OAuth2AccessTokenFetcher> access_token_fetcher_;
std::string policy_token_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/oauth2_policy_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698