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

Side by Side Diff: components/ssl_errors/error_classification.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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 #include "components/ssl_errors/error_classification.h" 5 #include "components/ssl_errors/error_classification.h"
6 6
7 #include <stddef.h>
8
7 #include <vector> 9 #include <vector>
8 10
9 #include "base/build_time.h" 11 #include "base/build_time.h"
10 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
11 #include "base/metrics/histogram_macros.h" 13 #include "base/metrics/histogram_macros.h"
12 #include "base/strings/string_split.h" 14 #include "base/strings/string_split.h"
13 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
14 #include "base/time/time.h" 16 #include "base/time/time.h"
17 #include "build/build_config.h"
15 #include "components/ssl_errors/error_info.h" 18 #include "components/ssl_errors/error_info.h"
16 #include "components/url_formatter/url_formatter.h" 19 #include "components/url_formatter/url_formatter.h"
17 #include "net/base/net_util.h" 20 #include "net/base/net_util.h"
18 #include "net/base/network_change_notifier.h" 21 #include "net/base/network_change_notifier.h"
19 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 22 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
20 #include "net/cert/x509_cert_types.h" 23 #include "net/cert/x509_cert_types.h"
21 #include "net/cert/x509_certificate.h" 24 #include "net/cert/x509_certificate.h"
22 #include "url/gurl.h" 25 #include "url/gurl.h"
23 26
24 #if defined(OS_WIN) 27 #if defined(OS_WIN)
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 return std::find(dns_names_domain.begin(), dns_names_domain.end() - 1, 415 return std::find(dns_names_domain.begin(), dns_names_domain.end() - 1,
413 host_name_domain) != dns_names_domain.end() - 1; 416 host_name_domain) != dns_names_domain.end() - 1;
414 } 417 }
415 418
416 bool IsHostnameNonUniqueOrDotless(const std::string& hostname) { 419 bool IsHostnameNonUniqueOrDotless(const std::string& hostname) {
417 return net::IsHostnameNonUnique(hostname) || 420 return net::IsHostnameNonUnique(hostname) ||
418 hostname.find('.') == std::string::npos; 421 hostname.find('.') == std::string::npos;
419 } 422 }
420 423
421 } // namespace ssl_errors 424 } // namespace ssl_errors
OLDNEW
« no previous file with comments | « components/ssl_config/ssl_config_service_manager_pref.cc ('k') | components/ssl_errors/error_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698