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

Side by Side Diff: chrome/browser/chromeos/arc/arc_auth_service.h

Issue 2201493002: [Merge to M53] arc: Implement safe access to ArcAuthService. (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@2785
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <ostream> 9 #include <ostream>
10 #include <string> 10 #include <string>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void StartLso(); 145 void StartLso();
146 146
147 // Called from Arc support platform app to set auth code and start arc. 147 // Called from Arc support platform app to set auth code and start arc.
148 void SetAuthCodeAndStartArc(const std::string& auth_code); 148 void SetAuthCodeAndStartArc(const std::string& auth_code);
149 149
150 // Called from Arc support platform app when user cancels signing. 150 // Called from Arc support platform app when user cancels signing.
151 void CancelAuthCode(); 151 void CancelAuthCode();
152 152
153 bool IsArcManaged() const; 153 bool IsArcManaged() const;
154 bool IsArcEnabled() const; 154 bool IsArcEnabled() const;
155
156 // This requires Arc to be allowed (|IsAllowed|)for current profile.
155 void EnableArc(); 157 void EnableArc();
156 void DisableArc(); 158 void DisableArc();
157 159
158 // syncable_prefs::PrefServiceSyncableObserver 160 // syncable_prefs::PrefServiceSyncableObserver
159 void OnIsSyncingChanged() override; 161 void OnIsSyncingChanged() override;
160 162
161 // syncable_prefs::SyncedPrefObserver 163 // syncable_prefs::SyncedPrefObserver
162 void OnSyncedPrefChanged(const std::string& path, bool from_sync) override; 164 void OnSyncedPrefChanged(const std::string& path, bool from_sync) override;
163 165
164 // ArcAuthContextDelegate: 166 // ArcAuthContextDelegate:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; 222 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_;
221 223
222 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); 224 DISALLOW_COPY_AND_ASSIGN(ArcAuthService);
223 }; 225 };
224 226
225 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); 227 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state);
226 228
227 } // namespace arc 229 } // namespace arc
228 230
229 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 231 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698