Chromium Code Reviews| Index: chrome/browser/chromeos/arc/arc_auth_service.h |
| diff --git a/chrome/browser/chromeos/arc/arc_auth_service.h b/chrome/browser/chromeos/arc/arc_auth_service.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9e752587737e6e1b8a0f0d06044a55e59cda2780 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/arc/arc_auth_service.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
|
hidehiko
2016/01/18 01:26:45
nit: 2016
Luis Héctor Chávez
2016/01/19 17:43:54
This is technically a move/rename, but done since
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| +#define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
| + |
| +#include "base/macros.h" |
| +#include "components/arc/arc_bridge_service.h" |
| +#include "components/arc/arc_service.h" |
| +#include "components/arc/common/auth.mojom.h" |
| +#include "mojo/public/cpp/bindings/binding.h" |
| + |
| +namespace arc { |
| + |
| +// This class proxies the request from the client to fetch an auth code from |
| +// LSO. |
| +class ArcAuthService : public ArcService, |
| + public AuthHost, |
| + public ArcBridgeService::Observer { |
| + public: |
| + explicit ArcAuthService(ArcBridgeService* arc_bridge); |
| + ~ArcAuthService() override; |
| + |
| + private: |
| + // Overrides ArcBridgeService::Observer. |
| + void OnAuthInstanceReady() override; |
| + |
| + // Overrides AuthHost. |
| + void GetAuthCode(const GetAuthCodeCallback& callback) override; |
| + |
| + mojo::Binding<AuthHost> binding_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
| +}; |
| + |
| +} // namespace arc |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |