Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4727)

Unified Diff: chrome/browser/chromeos/arc/arc_auth_service.h

Issue 1596663002: arc-bridge: Introduce the ArcService class (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Rebased + protected ArcService direct instantiation Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d14d2b1a60d867ff858923466c29a0c62fad1b2a
--- /dev/null
+++ b/chrome/browser/chromeos/arc/arc_auth_service.h
@@ -0,0 +1,39 @@
+// Copyright 2016 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 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* bridge_service);
+ ~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_
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698