Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_CONTEXT_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_DELEGATE_H_ |
| 7 | 7 |
| 8 namespace arc { | 8 namespace arc { |
| 9 | 9 |
| 10 class ArcAuthContextDelegate { | 10 class ArcAuthContextDelegate { |
| 11 public: | 11 public: |
| 12 virtual void OnContextReady() = 0; | 12 virtual void OnContextReady() = 0; |
| 13 virtual void OnPrepareContextFailed() = 0; | 13 virtual void OnPrepareContextFailed() = 0; |
| 14 virtual void OnAuthCodeRequested(const std::string& auth_code) = 0; | |
|
xiyuan
2016/09/07 21:07:55
nit: OnAuthCodeRequested -> OnAuthCodeSuccess, Req
| |
| 15 virtual void OnAuthCodeFailed() = 0; | |
| 14 | 16 |
| 15 protected: | 17 protected: |
| 16 virtual ~ArcAuthContextDelegate() {} | 18 virtual ~ArcAuthContextDelegate() {} |
| 17 }; | 19 }; |
| 18 | 20 |
| 19 } // namespace arc | 21 } // namespace arc |
| 20 | 22 |
| 21 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_DELEGATE_H_ | 23 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_DELEGATE_H_ |
| OLD | NEW |