| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file contains helper functions used by Chromium OS login. | 5 // This file contains helper functions used by Chromium OS login. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ |
| 8 #define CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ | 8 #define CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Returns the storage partition for the sign-in webview. Note the function gets | 103 // Returns the storage partition for the sign-in webview. Note the function gets |
| 104 // the partition via the sign-in WebContents thus returns nullptr if the sign-in | 104 // the partition via the sign-in WebContents thus returns nullptr if the sign-in |
| 105 // webui is torn down. | 105 // webui is torn down. |
| 106 content::StoragePartition* GetSigninPartition(); | 106 content::StoragePartition* GetSigninPartition(); |
| 107 | 107 |
| 108 // Returns the request context that contains sign-in cookies. For old iframe | 108 // Returns the request context that contains sign-in cookies. For old iframe |
| 109 // based flow, the context of the sign-in profile is returned. For webview based | 109 // based flow, the context of the sign-in profile is returned. For webview based |
| 110 // flow, the context of the sign-in webview storage partition is returned. | 110 // flow, the context of the sign-in webview storage partition is returned. |
| 111 net::URLRequestContextGetter* GetSigninContext(); | 111 net::URLRequestContextGetter* GetSigninContext(); |
| 112 | 112 |
| 113 using OnPipeReadyCallback = base::Callback<void(base::ScopedFD fd)>; |
| 114 void GetPipeReadEnd(const std::string& data, |
| 115 const OnPipeReadyCallback& callback); |
| 116 |
| 113 } // namespace login | 117 } // namespace login |
| 114 | 118 |
| 115 } // namespace chromeos | 119 } // namespace chromeos |
| 116 | 120 |
| 117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ | 121 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ |
| OLD | NEW |