summaryrefslogtreecommitdiffstats
path: root/net/url_request/https_prober.cc
diff options
context:
space:
mode:
authorsatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-09 08:14:10 +0000
committersatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-09 08:14:10 +0000
commitee16679f293ca27ce3d822a97efad7d3fa8a049e (patch)
tree4d531d3ecd47038f476a405372acfbdd20c493f3 /net/url_request/https_prober.cc
parentdce3a57799f52dc3edc0bee78c5e74fed362c365 (diff)
downloadchromium_src-ee16679f293ca27ce3d822a97efad7d3fa8a049e.zip
chromium_src-ee16679f293ca27ce3d822a97efad7d3fa8a049e.tar.gz
chromium_src-ee16679f293ca27ce3d822a97efad7d3fa8a049e.tar.bz2
Add a new GetInstance() method for singleton classes under chrome/service and /net.
This is a small step towards making all singleton classes use the Singleton<T> pattern within their code and not expect the callers to know about it. This CL includes files under chrome/service and /net with related files elsewhere. Suggested files to focus for reviewers: - @sanjeevr for chrome/common and chrome/service - @ukai for net/websockets - @agl for rest of net BUG=65298 TEST=all existing tests should continue to pass. Review URL: http://codereview.chromium.org/5634005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68722 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/https_prober.cc')
-rw-r--r--net/url_request/https_prober.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/url_request/https_prober.cc b/net/url_request/https_prober.cc
index 4388294..bdafcf6 100644
--- a/net/url_request/https_prober.cc
+++ b/net/url_request/https_prober.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/singleton.h"
#include "net/url_request/https_prober.h"
#include "net/url_request/url_request.h"
@@ -15,6 +16,11 @@ HTTPSProber::HTTPSProber() {
HTTPSProber::~HTTPSProber() {
}
+// static
+HTTPSProber* HTTPSProber::GetInstance() {
+ return Singleton<HTTPSProber>::get();
+}
+
bool HTTPSProber::HaveProbed(const std::string& host) const {
return probed_.find(host) != probed_.end();
}