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

Side by Side Diff: chrome/browser/net/chrome_dns_cert_provenance_checker.cc

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/net/chrome_dns_cert_provenance_checker.h" 5 #include "chrome/browser/net/chrome_dns_cert_provenance_checker.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/stl_util-inl.h" 8 #include "base/stl_util.h"
9 #include "chrome/browser/net/chrome_url_request_context.h" 9 #include "chrome/browser/net/chrome_url_request_context.h"
10 #include "net/url_request/url_request.h" 10 #include "net/url_request/url_request.h"
11 11
12 namespace { 12 namespace {
13 13
14 class ChromeDnsCertProvenanceChecker : 14 class ChromeDnsCertProvenanceChecker
15 public net::DnsCertProvenanceChecker, 15 : public net::DnsCertProvenanceChecker,
16 public net::DnsCertProvenanceChecker::Delegate { 16 public net::DnsCertProvenanceChecker::Delegate {
17 public: 17 public:
18 ChromeDnsCertProvenanceChecker( 18 ChromeDnsCertProvenanceChecker(
19 net::DnsRRResolver* dnsrr_resolver, 19 net::DnsRRResolver* dnsrr_resolver,
20 ChromeURLRequestContext* url_req_context) 20 ChromeURLRequestContext* url_req_context)
21 : dnsrr_resolver_(dnsrr_resolver), 21 : dnsrr_resolver_(dnsrr_resolver),
22 url_req_context_(url_req_context), 22 url_req_context_(url_req_context),
23 upload_url_("http://chromecertcheck.appspot.com/upload"), 23 upload_url_("http://chromecertcheck.appspot.com/upload"),
24 delegate_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { 24 delegate_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
25 } 25 }
26 26
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 std::set<net::URLRequest*> inflight_requests_; 106 std::set<net::URLRequest*> inflight_requests_;
107 }; 107 };
108 108
109 } // namespace 109 } // namespace
110 110
111 net::DnsCertProvenanceChecker* CreateChromeDnsCertProvenanceChecker( 111 net::DnsCertProvenanceChecker* CreateChromeDnsCertProvenanceChecker(
112 net::DnsRRResolver* dnsrr_resolver, 112 net::DnsRRResolver* dnsrr_resolver,
113 ChromeURLRequestContext* url_req_context) { 113 ChromeURLRequestContext* url_req_context) {
114 return new ChromeDnsCertProvenanceChecker(dnsrr_resolver, url_req_context); 114 return new ChromeDnsCertProvenanceChecker(dnsrr_resolver, url_req_context);
115 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698