OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ios/web/net/request_tracker_impl.h" | 5 #include "ios/web/net/request_tracker_impl.h" |
6 | 6 |
7 #include <pthread.h> | 7 #include <pthread.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 estimate)); | 805 estimate)); |
806 } | 806 } |
807 } | 807 } |
808 } | 808 } |
809 | 809 |
810 void RequestTrackerImpl::SSLNotify() { | 810 void RequestTrackerImpl::SSLNotify() { |
811 DCHECK_CURRENTLY_ON(web::WebThread::IO); | 811 DCHECK_CURRENTLY_ON(web::WebThread::IO); |
812 if (is_closing_) | 812 if (is_closing_) |
813 return; | 813 return; |
814 | 814 |
815 if (!counts_.size()) | 815 if (counts_.empty()) |
816 return; // Nothing yet to notify. | 816 return; // Nothing yet to notify. |
817 | 817 |
818 if (!page_url_.SchemeIsCryptographic()) | 818 if (!page_url_.SchemeIsCryptographic()) |
819 return; | 819 return; |
820 | 820 |
821 const GURL page_origin = page_url_.GetOrigin(); | 821 const GURL page_origin = page_url_.GetOrigin(); |
822 ScopedVector<TrackerCounts>::iterator it; | 822 ScopedVector<TrackerCounts>::iterator it; |
823 for (it = counts_.begin(); it != counts_.end(); ++it) { | 823 for (it = counts_.begin(); it != counts_.end(); ++it) { |
824 if (!(*it)->ssl_info.is_valid()) | 824 if (!(*it)->ssl_info.is_valid()) |
825 continue; // No SSL info at this point in time on this tracker. | 825 continue; // No SSL info at this point in time on this tracker. |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1305 })); | 1305 })); |
1306 } | 1306 } |
1307 } | 1307 } |
1308 | 1308 |
1309 void RequestTrackerImpl::SetCertificatePolicyCacheForTest( | 1309 void RequestTrackerImpl::SetCertificatePolicyCacheForTest( |
1310 web::CertificatePolicyCache* cache) { | 1310 web::CertificatePolicyCache* cache) { |
1311 policy_cache_ = cache; | 1311 policy_cache_ = cache; |
1312 } | 1312 } |
1313 | 1313 |
1314 } // namespace web | 1314 } // namespace web |
OLD | NEW |