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_layer.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_layer.h')
-rw-r--r-- | net/http/http_network_layer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/http/http_network_layer.h b/net/http/http_network_layer.h index 4a61065..8cc62ab 100644 --- a/net/http/http_network_layer.h +++ b/net/http/http_network_layer.h @@ -7,6 +7,7 @@ #include <string> +#include "base/non_thread_safe.h" #include "base/ref_counted.h" #include "base/scoped_ptr.h" #include "net/http/http_transaction_factory.h" @@ -24,7 +25,7 @@ class ProxyService; class SpdySessionPool; class SSLConfigService; -class HttpNetworkLayer : public HttpTransactionFactory { +class HttpNetworkLayer : public HttpTransactionFactory, public NonThreadSafe { public: // |socket_factory|, |proxy_service| and |host_resolver| must remain valid for // the lifetime of HttpNetworkLayer. |