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

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

Issue 2133653002: arc: Notify ARC instance failures via callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased to master. Created 4 years, 5 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 State state() const { return state_; } 118 State state() const { return state_; }
119 119
120 std::string GetAndResetAuthCode(); 120 std::string GetAndResetAuthCode();
121 121
122 // Adds or removes observers. 122 // Adds or removes observers.
123 void AddObserver(Observer* observer); 123 void AddObserver(Observer* observer);
124 void RemoveObserver(Observer* observer); 124 void RemoveObserver(Observer* observer);
125 125
126 // ArcBridgeService::Observer: 126 // ArcBridgeService::Observer:
127 void OnBridgeStopped() override; 127 void OnBridgeStopped(ArcBridgeService::StopReason reason) override;
128 128
129 // InstanceHolder<mojom::AuthInstance>::Observer: 129 // InstanceHolder<mojom::AuthInstance>::Observer:
130 void OnInstanceReady() override; 130 void OnInstanceReady() override;
131 131
132 // AuthHost: 132 // AuthHost:
133 // For security reason this code can be used only once and exists for specific 133 // For security reason this code can be used only once and exists for specific
134 // period of time. 134 // period of time.
135 void GetAuthCodeDeprecated( 135 void GetAuthCodeDeprecated(
136 const GetAuthCodeDeprecatedCallback& callback) override; 136 const GetAuthCodeDeprecatedCallback& callback) override;
137 void GetAuthCode(const GetAuthCodeCallback& callback) override; 137 void GetAuthCode(const GetAuthCodeCallback& callback) override;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; 219 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_;
220 220
221 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); 221 DISALLOW_COPY_AND_ASSIGN(ArcAuthService);
222 }; 222 };
223 223
224 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); 224 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state);
225 225
226 } // namespace arc 226 } // namespace arc
227 227
228 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 228 #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