Index: components/proximity_auth/proximity_auth_client.h |
diff --git a/components/proximity_auth/proximity_auth_client.h b/components/proximity_auth/proximity_auth_client.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e4c5a32f0097d37190be57cb6668c04fed0745e5 |
--- /dev/null |
+++ b/components/proximity_auth/proximity_auth_client.h |
@@ -0,0 +1,26 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_PROXIMITY_AUTH_CLIENT_H_ |
+#define COMPONENTS_PROXIMITY_AUTH_CLIENT_H_ |
+ |
+#include <string> |
+ |
+namespace content { |
+class BrowserContext; |
+} // namespace content |
+ |
+// An interface that needs to be supplied to the Proximity Auth component by its |
+// embedder. |
+class ProximityAuthClient { |
Ilya Sherman
2015/04/23 20:52:53
Please ensconce this in the proximity_auth namespa
msarda
2015/04/24 15:47:06
Done.
|
+ public: |
+ // Returns the authenticated username for |browser_context|. |
+ virtual std::string GetAuthenticatedUsername( |
+ content::BrowserContext* browser_context) = 0; |
+ |
+ // Locks the screen for |browser_context|. |
+ virtual void Lock(content::BrowserContext* browser_context) = 0; |
+}; |
+ |
+#endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_H_ |