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

Side by Side Diff: ios/web/net/request_tracker_impl.mm

Issue 2070283002: Use container::back() and container::pop_back(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 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
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
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
OLDNEW
« no previous file with comments | « headless/public/util/error_reporter.cc ('k') | remoting/client/plugin/pepper_video_renderer_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698