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

Side by Side Diff: net/url_request/https_prober.h

Issue 6382003: Reorder the methods in net/url_request/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compiling net_unittests != compiling the rest of chrome Created 9 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 | « net/base/listen_socket.cc ('k') | net/url_request/https_prober.cc » ('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) 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 #ifndef NET_BASE_HTTPS_PROBER_H_ 5 #ifndef NET_BASE_HTTPS_PROBER_H_
6 #define NET_BASE_HTTPS_PROBER_H_ 6 #define NET_BASE_HTTPS_PROBER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // Implementation of net::URLRequest::Delegate 56 // Implementation of net::URLRequest::Delegate
57 virtual void OnAuthRequired(net::URLRequest* request, 57 virtual void OnAuthRequired(net::URLRequest* request,
58 net::AuthChallengeInfo* auth_info); 58 net::AuthChallengeInfo* auth_info);
59 virtual void OnSSLCertificateError(net::URLRequest* request, 59 virtual void OnSSLCertificateError(net::URLRequest* request,
60 int cert_error, 60 int cert_error,
61 net::X509Certificate* cert); 61 net::X509Certificate* cert);
62 virtual void OnResponseStarted(net::URLRequest* request); 62 virtual void OnResponseStarted(net::URLRequest* request);
63 virtual void OnReadCompleted(net::URLRequest* request, int bytes_read); 63 virtual void OnReadCompleted(net::URLRequest* request, int bytes_read);
64 64
65 private: 65 private:
66 friend struct DefaultSingletonTraits<HTTPSProber>;
67
66 HTTPSProber(); 68 HTTPSProber();
67 ~HTTPSProber(); 69 ~HTTPSProber();
68 70
69 void Success(net::URLRequest* request); 71 void Success(net::URLRequest* request);
70 void Failure(net::URLRequest* request); 72 void Failure(net::URLRequest* request);
71 void DoCallback(net::URLRequest* request, bool result); 73 void DoCallback(net::URLRequest* request, bool result);
72 74
73 std::map<std::string, HTTPSProberDelegate*> inflight_probes_; 75 std::map<std::string, HTTPSProberDelegate*> inflight_probes_;
74 std::set<std::string> probed_; 76 std::set<std::string> probed_;
75 77
76 friend struct DefaultSingletonTraits<HTTPSProber>;
77 DISALLOW_COPY_AND_ASSIGN(HTTPSProber); 78 DISALLOW_COPY_AND_ASSIGN(HTTPSProber);
78 }; 79 };
79 80
80 } // namespace net 81 } // namespace net
81 82
82 #endif // NET_BASE_HTTPS_PROBER_H_ 83 #endif // NET_BASE_HTTPS_PROBER_H_
OLDNEW
« no previous file with comments | « net/base/listen_socket.cc ('k') | net/url_request/https_prober.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698