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

Side by Side 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: Fixed Chrome OS build 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 unified diff | Download patch
OLDNEW
(Empty)
1 // 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
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
7
8 #include "base/macros.h"
9 #include "components/arc/arc_bridge_service.h"
10 #include "components/arc/arc_service.h"
11 #include "components/arc/common/auth.mojom.h"
12 #include "mojo/public/cpp/bindings/binding.h"
13
14 namespace arc {
15
16 // This class proxies the request from the client to fetch an auth code from
17 // LSO.
18 class ArcAuthService : public ArcService,
19 public AuthHost,
20 public ArcBridgeService::Observer {
21 public:
22 explicit ArcAuthService(ArcBridgeService* arc_bridge);
23 ~ArcAuthService() override;
24
25 private:
26 // Overrides ArcBridgeService::Observer.
27 void OnAuthInstanceReady() override;
28
29 // Overrides AuthHost.
30 void GetAuthCode(const GetAuthCodeCallback& callback) override;
31
32 mojo::Binding<AuthHost> binding_;
33
34 DISALLOW_COPY_AND_ASSIGN(ArcAuthService);
35 };
36
37 } // namespace arc
38
39 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | chrome/browser/chromeos/arc/arc_auth_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698