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

Unified Diff: net/url_request/https_prober.h

Issue 5634005: Add a new GetInstance() method for singleton classes under chrome/service and /net. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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 side-by-side diff with in-line comments
Download patch
Index: net/url_request/https_prober.h
diff --git a/net/url_request/https_prober.h b/net/url_request/https_prober.h
index ab70fd32bdb37100c34da1398001375ea1a05afe..e57e56793feb238142045edf44af1894f2137426 100644
--- a/net/url_request/https_prober.h
+++ b/net/url_request/https_prober.h
@@ -33,8 +33,8 @@ class HTTPSProberDelegate {
// transparently upgrading from HTTP to HTTPS (for example, for SPDY).
class HTTPSProber : public net::URLRequest::Delegate {
public:
- HTTPSProber();
- ~HTTPSProber();
+ // Returns the singleton instance.
+ static HTTPSProber* GetInstance();
// HaveProbed returns true if the given host is known to have been probed
// since the browser was last started.
@@ -62,6 +62,9 @@ class HTTPSProber : public net::URLRequest::Delegate {
void OnReadCompleted(net::URLRequest* request, int bytes_read);
private:
+ HTTPSProber();
+ ~HTTPSProber();
+
void Success(net::URLRequest* request);
void Failure(net::URLRequest* request);
void DoCallback(net::URLRequest* request, bool result);

Powered by Google App Engine
This is Rietveld 408576698