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 "bug 65948". Will remove this |
| + // code after fixing "bug 65948". |
|
wtc
2011/02/12 00:00:41
Please remove the quotes (""). Sorry to have conf
ramant (doing other things)
2011/02/12 00:08:21
Done.
|
| + void EnsureThreadIdAssigned() const; |
| + bool CalledOnValidThread() const; |
| + void DetachFromThread(); |
|
wtc
2011/02/12 00:00:41
Remove DetachFromThread() in this file and in the
ramant (doing other things)
2011/02/12 00:08:21
Done.
|
| + |
| 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 "bug 65948". Will |
| + // remove this code after fixing "bug 65948". |
| + // 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 |