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

Side by Side Diff: components/arc/common/auth.mojom

Issue 2723263003: arc: Provide more logging for network failures. (Closed)
Patch Set: forgot to clean arc_auth_service.cc 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // Next MinVersion: 8 5 // Next MinVersion: 9
6 6
7 module arc.mojom; 7 module arc.mojom;
8 8
9 // These values describe failure reason of sign-in. 9 // These values describe failure reason of sign-in.
10 [Extensible] 10 [Extensible]
11 enum ArcSignInFailureReason { 11 enum ArcSignInFailureReason {
12 // Negative values are reserved for internal use. 12 // Negative values are reserved for internal use.
13 // The values are shuffled to keep the backward compatibility and don't match 13 // The values are shuffled to keep the backward compatibility and don't match
14 // ProvisioningResult in arc_optin_uma.h 14 // ProvisioningResult in arc_optin_uma.h
15 // Next value: 15. 15 // Next value: 16.
16 UNKNOWN_ERROR = 0, 16 UNKNOWN_ERROR = 0,
17 17
18 // Mojo errors: 18 // Mojo errors:
19 // MOJO_VERSION_MISMATCH: is sent when an API is not supported 19 // MOJO_VERSION_MISMATCH: is sent when an API is not supported
20 // due to Host/Instance version mismatch. 20 // due to Host/Instance version mismatch.
21 // MOJO_CALL_TIMEOUT: is sent when a Mojo invocation is started 21 // MOJO_CALL_TIMEOUT: is sent when a Mojo invocation is started
22 // but not completed with time out. 22 // but not completed with time out.
23 MOJO_VERSION_MISMATCH = 6, 23 MOJO_VERSION_MISMATCH = 6,
24 MOJO_CALL_TIMEOUT = 7, 24 MOJO_CALL_TIMEOUT = 7,
25 25
(...skipping 28 matching lines...) Expand all
54 GMS_SERVICE_UNAVAILABLE = 2, 54 GMS_SERVICE_UNAVAILABLE = 2,
55 GMS_BAD_AUTHENTICATION = 3, 55 GMS_BAD_AUTHENTICATION = 3,
56 GMS_SIGN_IN_FAILED = 10, 56 GMS_SIGN_IN_FAILED = 10,
57 GMS_SIGN_IN_TIMEOUT = 11, 57 GMS_SIGN_IN_TIMEOUT = 11,
58 GMS_SIGN_IN_INTERNAL_ERROR = 12, 58 GMS_SIGN_IN_INTERNAL_ERROR = 12,
59 59
60 // Cloud provisioning errors. 60 // Cloud provisioning errors.
61 CLOUD_PROVISION_FLOW_FAILED = 5, 61 CLOUD_PROVISION_FLOW_FAILED = 5,
62 CLOUD_PROVISION_FLOW_TIMEOUT = 13, 62 CLOUD_PROVISION_FLOW_TIMEOUT = 13,
63 CLOUD_PROVISION_FLOW_INTERNAL_ERROR = 14, 63 CLOUD_PROVISION_FLOW_INTERNAL_ERROR = 14,
64
65 // Network connection is unavailable.
66 [MinVersion=8] NO_NETWORK_CONNECTION = 15,
64 }; 67 };
65 68
66 // These values describe the type of the Chrome account to provision. 69 // These values describe the type of the Chrome account to provision.
67 [Extensible] 70 [Extensible]
68 enum ChromeAccountType { 71 enum ChromeAccountType {
69 // Next value: 4 72 // Next value: 4
70 UNKNOWN = 0, 73 UNKNOWN = 0,
71 74
72 // Chrome login account type is a user account. 75 // Chrome login account type is a user account.
73 USER_ACCOUNT = 1, 76 USER_ACCOUNT = 1,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 Init@0(AuthHost host_ptr); 154 Init@0(AuthHost host_ptr);
152 155
153 // Callback from RequestAccountInfo. This cannot be a normal callback since 156 // Callback from RequestAccountInfo. This cannot be a normal callback since
154 // the result can sometimes take a few minutes in some cases (Kiosk mode), 157 // the result can sometimes take a few minutes in some cases (Kiosk mode),
155 // and in other cases there is a UI that the user is shown and they can take 158 // and in other cases there is a UI that the user is shown and they can take
156 // an arbitrarily long amount of time to interact with. 159 // an arbitrarily long amount of time to interact with.
157 // If |account_info| is null, it implies that there was an error in the 160 // If |account_info| is null, it implies that there was an error in the
158 // process. 161 // process.
159 [MinVersion=5] OnAccountInfoReady(AccountInfo? account_info); 162 [MinVersion=5] OnAccountInfoReady(AccountInfo? account_info);
160 }; 163 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698