Index: chrome/browser/chromeos/login/helper.h |
diff --git a/chrome/browser/chromeos/login/helper.h b/chrome/browser/chromeos/login/helper.h |
index ef4e870cfca4eb2b8bc4c26f50dcfcaa5ca53525..2809d668d63d3a16532f174a6934c57d22ce7e3b 100644 |
--- a/chrome/browser/chromeos/login/helper.h |
+++ b/chrome/browser/chromeos/login/helper.h |
@@ -21,6 +21,14 @@ class Rect; |
class Size; |
} // namespace gfx |
+namespace content { |
+class StoragePartition; |
+} |
+ |
+namespace net { |
+class URLRequestContextGetter; |
+} |
+ |
namespace chromeos { |
// Returns bounds of the screen to use for login wizard. |
@@ -66,6 +74,20 @@ class NetworkStateHelper { |
DISALLOW_COPY_AND_ASSIGN(NetworkStateHelper); |
}; |
+// |
+// Webview based login helpers. |
+// |
+ |
+// Returns the storage partition for the sign-in webview. Note the function gets |
+// the partition via the sign-in WebContents thus returns nullptr if the sign-in |
+// webui is torn down. |
+content::StoragePartition* GetSigninPartition(); |
+ |
+// Returns the request context that contains sign-in cookies. For old iframe |
+// based flow, the context of the sign-in profile is returned. For webview based |
+// flow, the context of the sign-in webview storage partition is returned. |
+net::URLRequestContextGetter* GetSigninContext(); |
+ |
} // namespace login |
} // namespace chromeos |