| // 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 proximity_auth { |
| |
| // An interface that needs to be supplied to the Proximity Auth component by its |
| // embedder. There should be one |ProximityAuthClient| per |
| // |content::BrowserContext|. |
| class ProximityAuthClient { |
| public: |
| virtual ~ProximityAuthClient() {} |
| |
| // Returns the authenticated username. |
| virtual std::string GetAuthenticatedUsername() const = 0; |
| }; |
| |
| } // namespace proximity_auth |
| |
| #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_H_ |