| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SYNC_DRIVER_PROFILE_SYNC_AUTH_PROVIDER_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_PROFILE_SYNC_AUTH_PROVIDER_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_PROFILE_SYNC_AUTH_PROVIDER_H_ | 6 #define COMPONENTS_SYNC_DRIVER_PROFILE_SYNC_AUTH_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "components/sync/core/sync_auth_provider.h" |
| 13 #include "google_apis/gaia/oauth2_token_service.h" | 14 #include "google_apis/gaia/oauth2_token_service.h" |
| 14 #include "sync/internal_api/public/sync_auth_provider.h" | |
| 15 | 15 |
| 16 class ProfileOAuth2TokenService; | 16 class ProfileOAuth2TokenService; |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class SingleThreadTaskRunner; | 19 class SingleThreadTaskRunner; |
| 20 } // namespace base | 20 } // namespace base |
| 21 | 21 |
| 22 // ProfileSyncAuthProvider implements function for SyncAuthProvider. It doesn't | 22 // ProfileSyncAuthProvider implements function for SyncAuthProvider. It doesn't |
| 23 // inherit from SyncAuthProvider because it lives on UI thread while requests | 23 // inherit from SyncAuthProvider because it lives on UI thread while requests |
| 24 // originate from sync thread. SyncThreadProxy implements SyncAuthProvider and | 24 // originate from sync thread. SyncThreadProxy implements SyncAuthProvider and |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 std::unique_ptr<OAuth2TokenService::Request> access_token_request_; | 63 std::unique_ptr<OAuth2TokenService::Request> access_token_request_; |
| 64 syncer::SyncAuthProvider::RequestTokenCallback request_token_callback_; | 64 syncer::SyncAuthProvider::RequestTokenCallback request_token_callback_; |
| 65 scoped_refptr<base::SingleThreadTaskRunner> callback_task_runner_; | 65 scoped_refptr<base::SingleThreadTaskRunner> callback_task_runner_; |
| 66 | 66 |
| 67 base::WeakPtrFactory<ProfileSyncAuthProvider> weak_factory_; | 67 base::WeakPtrFactory<ProfileSyncAuthProvider> weak_factory_; |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(ProfileSyncAuthProvider); | 69 DISALLOW_COPY_AND_ASSIGN(ProfileSyncAuthProvider); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 #endif // COMPONENTS_SYNC_DRIVER_PROFILE_SYNC_AUTH_PROVIDER_H_ | 72 #endif // COMPONENTS_SYNC_DRIVER_PROFILE_SYNC_AUTH_PROVIDER_H_ |
| OLD | NEW |