diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 22:46:58 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 22:46:58 +0000 |
commit | ffc5b08749ffeb9fa5b15dc78dfd092d403d0c75 (patch) | |
tree | 411f88009bace8410667cdc159bc00fa9ba277fa /net/base | |
parent | bef362b699466a6889e3c35a1e0754d19d6c4807 (diff) | |
download | chromium_src-ffc5b08749ffeb9fa5b15dc78dfd092d403d0c75.zip chromium_src-ffc5b08749ffeb9fa5b15dc78dfd092d403d0c75.tar.gz chromium_src-ffc5b08749ffeb9fa5b15dc78dfd092d403d0c75.tar.bz2 |
net: refactor SSLNonSensitiveHostInfo
This code is currently unused in the tree, so the refactoring is
'safe'. The code needed to write tests is still pending.
BUG=none
TEST=none (yet)
http://codereview.chromium.org/3381014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60227 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/ssl_non_sensitive_host_info.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/net/base/ssl_non_sensitive_host_info.h b/net/base/ssl_non_sensitive_host_info.h index cac5a72..88d5cef 100644 --- a/net/base/ssl_non_sensitive_host_info.h +++ b/net/base/ssl_non_sensitive_host_info.h @@ -18,7 +18,10 @@ namespace net { class SSLNonSensitiveHostInfo : public base::RefCountedThreadSafe<SSLNonSensitiveHostInfo> { public: - virtual ~SSLNonSensitiveHostInfo() { } + // Start will commence the lookup. This must be called before any other + // methods. By opportunistically calling this early, it may be possible to + // overlap this object's lookup and reduce latency. + virtual void Start() = 0; // WaitForDataReady returns OK if the fetch of the requested data has // completed. Otherwise it returns ERR_IO_PENDING and will call |callback| on @@ -42,6 +45,10 @@ class SSLNonSensitiveHostInfo : // this object and the store operation will still complete. This can only be // called once WaitForDataReady has returned OK or called its callback. virtual void Set(const std::string& new_data) = 0; + + protected: + friend class base::RefCountedThreadSafe<SSLNonSensitiveHostInfo>; + virtual ~SSLNonSensitiveHostInfo() { } }; } // namespace net |