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

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

Issue 11618024: [signin] Support for CrOS and OAuth2AccessTokenConsumer services. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Minor fixes Created 8 years 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 | « chrome/browser/chrome_to_mobile_service.cc ('k') | chrome/browser/chromeos/login/online_attempt.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/online_attempt.h
diff --git a/chrome/browser/chromeos/login/online_attempt.h b/chrome/browser/chromeos/login/online_attempt.h
index 65166828cc4b3ca0900edf0288bdb060f0a7aae5..c45f149c2648d407890c9cda5412066dff05c732 100644
--- a/chrome/browser/chromeos/login/online_attempt.h
+++ b/chrome/browser/chromeos/login/online_attempt.h
@@ -12,9 +12,11 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "base/observer_list.h"
#include "chrome/browser/chromeos/login/login_status_consumer.h"
#include "chrome/browser/net/gaia/gaia_oauth_consumer.h"
#include "chrome/browser/net/gaia/gaia_oauth_fetcher.h"
+#include "chrome/browser/signin/signin_internals_util.h"
#include "google_apis/gaia/gaia_auth_consumer.h"
#include "google_apis/gaia/google_service_auth_error.h"
@@ -53,6 +55,13 @@ class OnlineAttempt
virtual void OnOAuthLoginFailure(
const GoogleServiceAuthError& error) OVERRIDE;
+ // Methods to register (and remove) observers interested in signin
+ // diagnostics related information updates.
+ void AddSigninDiagnosticsObserver(
+ signin_internals_util::SigninDiagnosticsObserver* observer);
+ void RemoveSigninDiagnosticsObserver(
+ signin_internals_util::SigninDiagnosticsObserver* observer);
+
private:
FRIEND_TEST_ALL_PREFIXES(OnlineAttemptTest, LoginSuccess);
FRIEND_TEST_ALL_PREFIXES(OnlineAttemptTest, TwoFactorSuccess);
@@ -85,6 +94,10 @@ class OnlineAttempt
// Whether we're willing to re-try the ClientLogin attempt.
bool try_again_;
+ // A list of interested observers.
+ ObserverList<signin_internals_util::SigninDiagnosticsObserver>
+ signin_diagnostics_observers_;
+
friend class OnlineAttemptTest;
DISALLOW_COPY_AND_ASSIGN(OnlineAttempt);
};
« no previous file with comments | « chrome/browser/chrome_to_mobile_service.cc ('k') | chrome/browser/chromeos/login/online_attempt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698