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

Side by Side Diff: chrome/browser/signin/android_profile_oauth2_token_service.h

Issue 71723002: This is the second CL of several that will eventually replace TokenService with (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_notification_types.h ('k') | chrome/browser/signin/fake_signin_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_
6 #define CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 6 #define CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
11 #include "base/android/jni_helper.h" 11 #include "base/android/jni_helper.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "chrome/browser/signin/profile_oauth2_token_service.h" 15 #include "chrome/browser/signin/profile_oauth2_token_service.h"
16 #include "google_apis/gaia/google_service_auth_error.h" 16 #include "google_apis/gaia/google_service_auth_error.h"
17 17
18 class TokenService;
19
20
21 // A specialization of ProfileOAuth2TokenService that will be returned by 18 // A specialization of ProfileOAuth2TokenService that will be returned by
22 // ProfileOAuth2TokenServiceFactory for OS_ANDROID. This instance uses 19 // ProfileOAuth2TokenServiceFactory for OS_ANDROID. This instance uses
23 // native Android features to lookup OAuth2 tokens. 20 // native Android features to lookup OAuth2 tokens.
24 // 21 //
25 // See |ProfileOAuth2TokenService| for usage details. 22 // See |ProfileOAuth2TokenService| for usage details.
26 // 23 //
27 // Note: requests should be started from the UI thread. To start a 24 // Note: requests should be started from the UI thread. To start a
28 // request from other thread, please use ProfileOAuth2TokenServiceRequest. 25 // request from other thread, please use ProfileOAuth2TokenServiceRequest.
29 class AndroidProfileOAuth2TokenService : public ProfileOAuth2TokenService { 26 class AndroidProfileOAuth2TokenService : public ProfileOAuth2TokenService {
30 public: 27 public:
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // Called to notify observers when refresh tokans have been loaded. 91 // Called to notify observers when refresh tokans have been loaded.
95 virtual void FireRefreshTokensLoaded() OVERRIDE; 92 virtual void FireRefreshTokensLoaded() OVERRIDE;
96 93
97 private: 94 private:
98 base::android::ScopedJavaGlobalRef<jobject> java_ref_; 95 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
99 96
100 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService); 97 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService);
101 }; 98 };
102 99
103 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 100 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_notification_types.h ('k') | chrome/browser/signin/fake_signin_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698