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

Side by Side Diff: chrome/browser/chromeos/arc/arc_auth_service.h

Issue 2734983002: [Merge M57] arc: Handle metrics for Auth operations. (Closed)
Patch Set: fix merge conflict/manually tested with/without android changes Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 22 matching lines...) Expand all
33 static ArcAuthService* GetForTest(); 33 static ArcAuthService* GetForTest();
34 34
35 // InstanceHolder<mojom::AuthInstance>::Observer: 35 // InstanceHolder<mojom::AuthInstance>::Observer:
36 void OnInstanceReady() override; 36 void OnInstanceReady() override;
37 void OnInstanceClosed() override; 37 void OnInstanceClosed() override;
38 38
39 // mojom::AuthHost: 39 // mojom::AuthHost:
40 void OnSignInComplete() override; 40 void OnSignInComplete() override;
41 void OnSignInFailed(mojom::ArcSignInFailureReason reason) override; 41 void OnSignInFailed(mojom::ArcSignInFailureReason reason) override;
42 void RequestAccountInfo() override; 42 void RequestAccountInfo() override;
43 void ReportMetrics(mojom::MetricsType metrics_type, int32_t value) override;
43 44
44 // Deprecated methods: 45 // Deprecated methods:
45 // For security reason this code can be used only once and exists for specific 46 // For security reason this code can be used only once and exists for specific
46 // period of time. 47 // period of time.
47 void GetAuthCodeDeprecated0( 48 void GetAuthCodeDeprecated0(
48 const GetAuthCodeDeprecated0Callback& callback) override; 49 const GetAuthCodeDeprecated0Callback& callback) override;
49 void GetAuthCodeDeprecated( 50 void GetAuthCodeDeprecated(
50 const GetAuthCodeDeprecatedCallback& callback) override; 51 const GetAuthCodeDeprecatedCallback& callback) override;
51 void GetAuthCodeAndAccountTypeDeprecated( 52 void GetAuthCodeAndAccountTypeDeprecated(
52 const GetAuthCodeAndAccountTypeDeprecatedCallback& callback) override; 53 const GetAuthCodeAndAccountTypeDeprecatedCallback& callback) override;
(...skipping 20 matching lines...) Expand all
73 std::unique_ptr<ArcAuthCodeFetcher> fetcher_; 74 std::unique_ptr<ArcAuthCodeFetcher> fetcher_;
74 75
75 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; 76 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); 78 DISALLOW_COPY_AND_ASSIGN(ArcAuthService);
78 }; 79 };
79 80
80 } // namespace arc 81 } // namespace arc
81 82
82 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 83 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698