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

Side by Side Diff: chrome/browser/sync/profile_sync_auth_provider.h

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 CHROME_BROWSER_SYNC_PROFILE_SYNC_AUTH_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_AUTH_PROVIDER_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_AUTH_PROVIDER_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_AUTH_PROVIDER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "google_apis/gaia/oauth2_token_service.h" 10 #include "google_apis/gaia/oauth2_token_service.h"
(...skipping 13 matching lines...) Expand all
24 public base::NonThreadSafe { 24 public base::NonThreadSafe {
25 public: 25 public:
26 ProfileSyncAuthProvider(ProfileOAuth2TokenService* token_service, 26 ProfileSyncAuthProvider(ProfileOAuth2TokenService* token_service,
27 const std::string& account_id, 27 const std::string& account_id,
28 const std::string& scope); 28 const std::string& scope);
29 virtual ~ProfileSyncAuthProvider(); 29 virtual ~ProfileSyncAuthProvider();
30 30
31 // OAuth2TokenService::Consumer implementation. 31 // OAuth2TokenService::Consumer implementation.
32 virtual void OnGetTokenSuccess(const OAuth2TokenService::Request* request, 32 virtual void OnGetTokenSuccess(const OAuth2TokenService::Request* request,
33 const std::string& access_token, 33 const std::string& access_token,
34 const base::Time& expiration_time) OVERRIDE; 34 const base::Time& expiration_time) override;
35 virtual void OnGetTokenFailure(const OAuth2TokenService::Request* request, 35 virtual void OnGetTokenFailure(const OAuth2TokenService::Request* request,
36 const GoogleServiceAuthError& error) OVERRIDE; 36 const GoogleServiceAuthError& error) override;
37 37
38 // Request access token from OAuth2TokenService. Once access token is received 38 // Request access token from OAuth2TokenService. Once access token is received
39 // result should be posted to callback on task_runner thread. 39 // result should be posted to callback on task_runner thread.
40 void RequestAccessToken( 40 void RequestAccessToken(
41 const syncer::SyncAuthProvider::RequestTokenCallback& callback, 41 const syncer::SyncAuthProvider::RequestTokenCallback& callback,
42 scoped_refptr<base::SingleThreadTaskRunner> task_runner); 42 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
43 43
44 void InvalidateAccessToken(const std::string& token); 44 void InvalidateAccessToken(const std::string& token);
45 45
46 scoped_ptr<syncer::SyncAuthProvider> CreateProviderForSyncThread(); 46 scoped_ptr<syncer::SyncAuthProvider> CreateProviderForSyncThread();
(...skipping 13 matching lines...) Expand all
60 scoped_ptr<OAuth2TokenService::Request> access_token_request_; 60 scoped_ptr<OAuth2TokenService::Request> access_token_request_;
61 syncer::SyncAuthProvider::RequestTokenCallback request_token_callback_; 61 syncer::SyncAuthProvider::RequestTokenCallback request_token_callback_;
62 scoped_refptr<base::SingleThreadTaskRunner> callback_task_runner_; 62 scoped_refptr<base::SingleThreadTaskRunner> callback_task_runner_;
63 63
64 base::WeakPtrFactory<ProfileSyncAuthProvider> weak_factory_; 64 base::WeakPtrFactory<ProfileSyncAuthProvider> weak_factory_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(ProfileSyncAuthProvider); 66 DISALLOW_COPY_AND_ASSIGN(ProfileSyncAuthProvider);
67 }; 67 };
68 68
69 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_AUTH_PROVIDER_H_ 69 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_AUTH_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/ui_model_worker.h ('k') | chrome/browser/sync/profile_sync_auth_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698