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

Side by Side Diff: google_apis/drive/auth_service.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
« no previous file with comments | « gin/modules/module_registry.h ('k') | google_apis/gaia/account_tracker.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 GOOGLE_APIS_DRIVE_AUTH_SERVICE_H_ 5 #ifndef GOOGLE_APIS_DRIVE_AUTH_SERVICE_H_
6 #define GOOGLE_APIS_DRIVE_AUTH_SERVICE_H_ 6 #define GOOGLE_APIS_DRIVE_AUTH_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void OnAuthCompleted(const AuthStatusCallback& callback, 62 void OnAuthCompleted(const AuthStatusCallback& callback,
63 DriveApiErrorCode error, 63 DriveApiErrorCode error,
64 const std::string& access_token); 64 const std::string& access_token);
65 65
66 OAuth2TokenService* oauth2_token_service_; 66 OAuth2TokenService* oauth2_token_service_;
67 std::string account_id_; 67 std::string account_id_;
68 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; 68 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
69 bool has_refresh_token_; 69 bool has_refresh_token_;
70 std::string access_token_; 70 std::string access_token_;
71 std::vector<std::string> scopes_; 71 std::vector<std::string> scopes_;
72 ObserverList<AuthServiceObserver> observers_; 72 base::ObserverList<AuthServiceObserver> observers_;
73 base::ThreadChecker thread_checker_; 73 base::ThreadChecker thread_checker_;
74 74
75 // Note: This should remain the last member so it'll be destroyed and 75 // Note: This should remain the last member so it'll be destroyed and
76 // invalidate its weak pointers before any other members are destroyed. 76 // invalidate its weak pointers before any other members are destroyed.
77 base::WeakPtrFactory<AuthService> weak_ptr_factory_; 77 base::WeakPtrFactory<AuthService> weak_ptr_factory_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(AuthService); 79 DISALLOW_COPY_AND_ASSIGN(AuthService);
80 }; 80 };
81 81
82 } // namespace google_apis 82 } // namespace google_apis
83 83
84 #endif // GOOGLE_APIS_DRIVE_AUTH_SERVICE_H_ 84 #endif // GOOGLE_APIS_DRIVE_AUTH_SERVICE_H_
OLDNEW
« no previous file with comments | « gin/modules/module_registry.h ('k') | google_apis/gaia/account_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698