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

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

Issue 247263009: Rename jni_helper.h to jni_weak_ref.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
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_weak_ref.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 "components/signin/core/browser/profile_oauth2_token_service.h" 15 #include "components/signin/core/browser/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 // A specialization of ProfileOAuth2TokenService that will be returned by 18 // A specialization of ProfileOAuth2TokenService that will be returned by
19 // ProfileOAuth2TokenServiceFactory for OS_ANDROID. This instance uses 19 // ProfileOAuth2TokenServiceFactory for OS_ANDROID. This instance uses
20 // native Android features to lookup OAuth2 tokens. 20 // native Android features to lookup OAuth2 tokens.
21 // 21 //
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Called to notify observers when refresh tokans have been loaded. 104 // Called to notify observers when refresh tokans have been loaded.
105 virtual void FireRefreshTokensLoaded() OVERRIDE; 105 virtual void FireRefreshTokensLoaded() OVERRIDE;
106 106
107 private: 107 private:
108 base::android::ScopedJavaGlobalRef<jobject> java_ref_; 108 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService); 110 DISALLOW_COPY_AND_ASSIGN(AndroidProfileOAuth2TokenService);
111 }; 111 };
112 112
113 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_ 113 #endif // CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_service_android.h ('k') | chrome/browser/sync/profile_sync_service_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698