diff options
author | nyquist@chromium.org <nyquist@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-11 04:03:14 +0000 |
---|---|---|
committer | nyquist@chromium.org <nyquist@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-11 04:03:14 +0000 |
commit | fd07fa1a78bedffe6a4621b53a5fd3543000a2c3 (patch) | |
tree | 4bba4e10fa90ec0c11358fd70b0d05997d1863dd /google_apis/gaia/oauth2_token_service.h | |
parent | 87f176d360f92e687e59a0e81f7bbb379e748a63 (diff) | |
download | chromium_src-fd07fa1a78bedffe6a4621b53a5fd3543000a2c3.zip chromium_src-fd07fa1a78bedffe6a4621b53a5fd3543000a2c3.tar.gz chromium_src-fd07fa1a78bedffe6a4621b53a5fd3543000a2c3.tar.bz2 |
Add support for notifying about refreshed credentials.
Currently the Android platform does not inform the native code
that new credentials are available. This CL adds the necessary
functionality to fire the required notifications.
* Adds a Java instance of the OAuth2TokenService.
* Adds FireRefreshTokenAvailable().
* Adds support for Java-based observers.
* Adds a BroadcastReceiver to trigger the notification for the
Chrome Shell.
BUG=302143
Review URL: https://codereview.chromium.org/25653003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis/gaia/oauth2_token_service.h')
-rw-r--r-- | google_apis/gaia/oauth2_token_service.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/google_apis/gaia/oauth2_token_service.h b/google_apis/gaia/oauth2_token_service.h index b8faecd..52ea3ad 100644 --- a/google_apis/gaia/oauth2_token_service.h +++ b/google_apis/gaia/oauth2_token_service.h @@ -223,9 +223,9 @@ class OAuth2TokenService : public base::NonThreadSafe { void CancelRequestsForAccount(const std::string& account_id); // Called by subclasses to notify observers. - void FireRefreshTokenAvailable(const std::string& account_id); - void FireRefreshTokenRevoked(const std::string& account_id); - void FireRefreshTokensLoaded(); + virtual void FireRefreshTokenAvailable(const std::string& account_id); + virtual void FireRefreshTokenRevoked(const std::string& account_id); + virtual void FireRefreshTokensLoaded(); // Creates a request implementation. Can be overriden by derived classes to // provide additional control of token consumption. |consumer| will outlive |