1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_PROXIMITY_AUTH_CLIENT_H_
6 #define COMPONENTS_PROXIMITY_AUTH_CLIENT_H_
10 namespace proximity_auth
{
12 // An interface that needs to be supplied to the Proximity Auth component by its
13 // embedder. There should be one |ProximityAuthClient| per
14 // |content::BrowserContext|.
15 class ProximityAuthClient
{
17 virtual ~ProximityAuthClient() {}
19 // Returns the authenticated username.
20 virtual std::string
GetAuthenticatedUsername() const = 0;
23 } // namespace proximity_auth
25 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_H_