diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-12 18:29:43 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-12 18:29:43 +0000 |
commit | fe57c8c948f71b1990b91324870184d28ffd334f (patch) | |
tree | 03e3b6244478a6e40dad845631f4c92f02a2c160 /net/http/http_network_session.h | |
parent | 6b4c5f226478196065927e852fc581e2e5df4227 (diff) | |
download | chromium_src-fe57c8c948f71b1990b91324870184d28ffd334f.zip chromium_src-fe57c8c948f71b1990b91324870184d28ffd334f.tar.gz chromium_src-fe57c8c948f71b1990b91324870184d28ffd334f.tar.bz2 |
Annotate some network classes as non-threadsafe.
This is a defensive change to catch attempts to delete them on a different thread than where they were created (when in Debug mode).
Although most classes in net are not thread safe and could be annotated, I chose to annotate these specific ones since they are frequently the top-level objects held by embedders.
Review URL: http://codereview.chromium.org/1812007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_session.h')
-rw-r--r-- | net/http/http_network_session.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h index 96cc7ba..5f1b869 100644 --- a/net/http/http_network_session.h +++ b/net/http/http_network_session.h @@ -6,6 +6,7 @@ #define NET_HTTP_HTTP_NETWORK_SESSION_H_ #include <map> +#include "base/non_thread_safe.h" #include "base/ref_counted.h" #include "base/scoped_ptr.h" #include "net/base/host_port_pair.h" @@ -32,7 +33,8 @@ class HttpNetworkSessionPeer; class SpdySessionPool; // This class holds session objects used by HttpNetworkTransaction objects. -class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> { +class HttpNetworkSession : public base::RefCounted<HttpNetworkSession>, + public NonThreadSafe { public: HttpNetworkSession( HostResolver* host_resolver, |