Chromium Code Reviews| Index: net/socket/ssl_client_socket_nss.h |
| =================================================================== |
| --- net/socket/ssl_client_socket_nss.h (revision 74087) |
| +++ net/socket/ssl_client_socket_nss.h (working copy) |
| @@ -15,6 +15,8 @@ |
| #include <vector> |
| #include "base/scoped_ptr.h" |
| +#include "base/synchronization/lock.h" |
| +#include "base/threading/platform_thread.h" |
| #include "base/time.h" |
| #include "base/timer.h" |
| #include "net/base/cert_verify_result.h" |
| @@ -165,6 +167,12 @@ |
| // argument. |
| static void HandshakeCallback(PRFileDesc* socket, void* arg); |
| + // The following three methods are for debugging 65948. Will remove this code |
| + // after fixing 65948. |
| + void EnsureThreadIdAssigned() const; |
| + bool CalledOnValidThread() const; |
| + void DetachFromThread(); |
| + |
| CompletionCallbackImpl<SSLClientSocketNSS> buffer_send_callback_; |
| CompletionCallbackImpl<SSLClientSocketNSS> buffer_recv_callback_; |
| bool transport_send_busy_; |
| @@ -262,6 +270,14 @@ |
| scoped_ptr<SSLHostInfo> ssl_host_info_; |
| DnsCertProvenanceChecker* const dns_cert_checker_; |
| + |
| + // The following two variables are added for debugging 65948. Will remove this |
| + // code after fixing 65948. |
|
wtc
2011/02/11 22:43:50
Nit: please say "bug 65948" or http://crbug.com/65
ramant (doing other things)
2011/02/11 23:42:41
Done.
|
| + // Added the following code Debugging in release mode. |
| + mutable base::Lock lock_; |
| + // This is mutable so that CalledOnValidThread can set it. |
| + // It's guarded by |lock_|. |
| + mutable base::PlatformThreadId valid_thread_id_; |
| }; |
| } // namespace net |