OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SIGNIN_CORE_SIGNIN_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_SIGNIN_CLIENT_H_ |
6 #define COMPONENTS_SIGNIN_CORE_SIGNIN_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_SIGNIN_CORE_SIGNIN_CLIENT_H_ |
7 | 7 |
8 // A delegate interface that needs to be supplied to the Signin component by | 8 // An interface that needs to be supplied to the Signin component by its |
9 // its embedder. | 9 // embedder. |
10 class SigninManagerDelegate { | 10 class SigninClient { |
11 public: | 11 public: |
12 virtual ~SigninManagerDelegate() {} | 12 virtual ~SigninClient() {} |
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 // COMPONENTS_SIGNIN_CORE_SIGNIN_MANAGER_DELEGATE_H_ | 19 #endif // COMPONENTS_SIGNIN_CORE_SIGNIN_CLIENT_H_ |
OLD | NEW |