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

Side by Side Diff: chrome/browser/chromeos/login/helper.h

Issue 2794493002: Add AuthPolicyLoginHelper (Closed)
Patch Set: Update after review Created 3 years, 8 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
OLDNEW
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Returns the storage partition for the sign-in webview. Note the function gets 101 // Returns the storage partition for the sign-in webview. Note the function gets
102 // the partition via the sign-in WebContents thus returns nullptr if the sign-in 102 // the partition via the sign-in WebContents thus returns nullptr if the sign-in
103 // webui is torn down. 103 // webui is torn down.
104 content::StoragePartition* GetSigninPartition(); 104 content::StoragePartition* GetSigninPartition();
105 105
106 // Returns the request context that contains sign-in cookies. For old iframe 106 // Returns the request context that contains sign-in cookies. For old iframe
107 // based flow, the context of the sign-in profile is returned. For webview based 107 // based flow, the context of the sign-in profile is returned. For webview based
108 // flow, the context of the sign-in webview storage partition is returned. 108 // flow, the context of the sign-in webview storage partition is returned.
109 net::URLRequestContextGetter* GetSigninContext(); 109 net::URLRequestContextGetter* GetSigninContext();
110 110
111 using OnPipeReadyCallback = base::Callback<void(base::ScopedFD fd)>;
112 // Returns file descriptor of a pipe, open for reading. Pipe keeps the passed
113 // data.
114 void GetPipeReadEnd(const std::string& data,
115 const OnPipeReadyCallback& callback);
116
117 } // namespace login 111 } // namespace login
118 112
119 } // namespace chromeos 113 } // namespace chromeos
120 114
121 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ 115 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/enterprise_enrollment_browsertest.cc ('k') | chrome/browser/chromeos/login/helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698