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

Side by Side Diff: chrome/browser/chromeos/arc/auth/arc_manual_auth_code_fetcher.h

Issue 2618603003: arc: Restore UMA statistics for failures in LSO flow. (Closed)
Patch Set: Created 3 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
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_AUTH_ARC_MANUAL_AUTH_CODE_FETCHER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_AUTH_ARC_MANUAL_AUTH_CODE_FETCHER_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_AUTH_ARC_MANUAL_AUTH_CODE_FETCHER_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_AUTH_ARC_MANUAL_AUTH_CODE_FETCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 void Fetch(const FetchCallback& callback) override; 33 void Fetch(const FetchCallback& callback) override;
34 34
35 private: 35 private:
36 void FetchInternal(); 36 void FetchInternal();
37 37
38 // Called when HTTP request gets ready. 38 // Called when HTTP request gets ready.
39 void OnContextPrepared(net::URLRequestContextGetter* request_context_getter); 39 void OnContextPrepared(net::URLRequestContextGetter* request_context_getter);
40 40
41 // ArcSupportHost::Observer: 41 // ArcSupportHost::Observer:
42 void OnAuthSucceeded(const std::string& auth_code) override; 42 void OnAuthSucceeded(const std::string& auth_code) override;
43 void OnAuthFailed() override;
43 void OnRetryClicked() override; 44 void OnRetryClicked() override;
44 45
45 ArcAuthContext* const context_; 46 ArcAuthContext* const context_;
46 ArcSupportHost* const support_host_; 47 ArcSupportHost* const support_host_;
47 48
48 FetchCallback pending_callback_; 49 FetchCallback pending_callback_;
49 50
50 base::WeakPtrFactory<ArcManualAuthCodeFetcher> weak_ptr_factory_; 51 base::WeakPtrFactory<ArcManualAuthCodeFetcher> weak_ptr_factory_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(ArcManualAuthCodeFetcher); 53 DISALLOW_COPY_AND_ASSIGN(ArcManualAuthCodeFetcher);
53 }; 54 };
54 55
55 } // namespace arc 56 } // namespace arc
56 57
57 #endif // CHROME_BROWSER_CHROMEOS_ARC_AUTH_ARC_MANUAL_AUTH_CODE_FETCHER_H_ 58 #endif // CHROME_BROWSER_CHROMEOS_ARC_AUTH_ARC_MANUAL_AUTH_CODE_FETCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_support_host.cc ('k') | chrome/browser/chromeos/arc/auth/arc_manual_auth_code_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698