summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_layer.h
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 18:29:43 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 18:29:43 +0000
commitfe57c8c948f71b1990b91324870184d28ffd334f (patch)
tree03e3b6244478a6e40dad845631f4c92f02a2c160 /net/http/http_network_layer.h
parent6b4c5f226478196065927e852fc581e2e5df4227 (diff)
downloadchromium_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.h3
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.