| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SIGNIN_SIGNIN_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_SIGNIN_MANAGER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_SIGNIN_CORE_SIGNIN_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 // A delegate interface that needs to be supplied to SigninManager by | 8 // A delegate interface that needs to be supplied to the Signin component by |
| 9 // the embedder. | 9 // its embedder. |
| 10 class SigninManagerDelegate { | 10 class SigninManagerDelegate { |
| 11 public: | 11 public: |
| 12 virtual ~SigninManagerDelegate() {} | 12 virtual ~SigninManagerDelegate() {} |
| 13 | 13 |
| 14 // Returns true if the cookie policy for the execution context of | 14 // Returns true if the cookie policy for the execution context of |
| 15 // the SigninManager allows cookies for the Google signin domain. | 15 // the SigninManager allows cookies for the Google signin domain. |
| 16 virtual bool AreSigninCookiesAllowed() = 0; | 16 virtual bool AreSigninCookiesAllowed() = 0; |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_DELEGATE_H_ | 19 #endif // COMPONENTS_SIGNIN_CORE_SIGNIN_MANAGER_DELEGATE_H_ |
| OLD | NEW |