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

Side by Side Diff: chrome/browser/chromeos/cros/native_network_parser.cc

Issue 11824046: Detect user initiated network connection failures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix spelling Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/network_constants.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/chromeos/cros/native_network_parser.h" 5 #include "chrome/browser/chromeos/cros/native_network_parser.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 { flimflam::kErrorNeedEvdo, ERROR_NEED_EVDO }, 831 { flimflam::kErrorNeedEvdo, ERROR_NEED_EVDO },
832 { flimflam::kErrorNeedHomeNetwork, ERROR_NEED_HOME_NETWORK }, 832 { flimflam::kErrorNeedHomeNetwork, ERROR_NEED_HOME_NETWORK },
833 { flimflam::kErrorOtaspFailed, ERROR_OTASP_FAILED }, 833 { flimflam::kErrorOtaspFailed, ERROR_OTASP_FAILED },
834 { flimflam::kErrorAaaFailed, ERROR_AAA_FAILED }, 834 { flimflam::kErrorAaaFailed, ERROR_AAA_FAILED },
835 { flimflam::kErrorInternal, ERROR_INTERNAL }, 835 { flimflam::kErrorInternal, ERROR_INTERNAL },
836 { flimflam::kErrorDNSLookupFailed, ERROR_DNS_LOOKUP_FAILED }, 836 { flimflam::kErrorDNSLookupFailed, ERROR_DNS_LOOKUP_FAILED },
837 { flimflam::kErrorHTTPGetFailed, ERROR_HTTP_GET_FAILED }, 837 { flimflam::kErrorHTTPGetFailed, ERROR_HTTP_GET_FAILED },
838 { flimflam::kErrorIpsecPskAuthFailed, ERROR_IPSEC_PSK_AUTH_FAILED }, 838 { flimflam::kErrorIpsecPskAuthFailed, ERROR_IPSEC_PSK_AUTH_FAILED },
839 { flimflam::kErrorIpsecCertAuthFailed, ERROR_IPSEC_CERT_AUTH_FAILED }, 839 { flimflam::kErrorIpsecCertAuthFailed, ERROR_IPSEC_CERT_AUTH_FAILED },
840 { flimflam::kErrorPppAuthFailed, ERROR_PPP_AUTH_FAILED }, 840 { flimflam::kErrorPppAuthFailed, ERROR_PPP_AUTH_FAILED },
841 { shill::kErrorEapAuthenticationFailed, ERROR_EAP_AUTHENTICATION_FAILED },
842 { shill::kErrorEapLocalTlsFailed, ERROR_EAP_LOCAL_TLS_FAILED },
843 { shill::kErrorEapRemoteTlsFailed, ERROR_EAP_REMOTE_TLS_FAILED },
841 }; 844 };
842 CR_DEFINE_STATIC_LOCAL(EnumMapper<ConnectionError>, parser, 845 CR_DEFINE_STATIC_LOCAL(EnumMapper<ConnectionError>, parser,
843 (table, arraysize(table), ERROR_NO_ERROR)); 846 (table, arraysize(table), ERROR_NO_ERROR));
844 return parser.Get(error); 847 return parser.Get(error);
845 } 848 }
846 849
847 // -------------------- NativeEthernetNetworkParser -------------------- 850 // -------------------- NativeEthernetNetworkParser --------------------
848 851
849 NativeEthernetNetworkParser::NativeEthernetNetworkParser() {} 852 NativeEthernetNetworkParser::NativeEthernetNetworkParser() {}
850 NativeEthernetNetworkParser::~NativeEthernetNetworkParser() {} 853 NativeEthernetNetworkParser::~NativeEthernetNetworkParser() {}
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 PROVIDER_TYPE_MAX)); 1443 PROVIDER_TYPE_MAX));
1441 return &parser; 1444 return &parser;
1442 } 1445 }
1443 1446
1444 ProviderType NativeVirtualNetworkParser::ParseProviderType( 1447 ProviderType NativeVirtualNetworkParser::ParseProviderType(
1445 const std::string& type) { 1448 const std::string& type) {
1446 return provider_type_mapper()->Get(type); 1449 return provider_type_mapper()->Get(type);
1447 } 1450 }
1448 1451
1449 } // namespace chromeos 1452 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/network_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698