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

Side by Side Diff: components/sync_driver/profile_sync_auth_provider.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/sync_driver/non_ui_model_type_controller_unittest.cc ('k') | components/sync_driver/proxy_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698