 Chromium Code Reviews
 Chromium Code Reviews Issue 4339001:
  Correctly handle SSL Client Authentication requests when connecting...  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src/
    
  
    Issue 4339001:
  Correctly handle SSL Client Authentication requests when connecting...  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src/| OLD | NEW | 
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 // | 4 // | 
| 5 // An implementation of buzz::AsyncSocket that uses Chrome sockets. | 5 // An implementation of buzz::AsyncSocket that uses Chrome sockets. | 
| 6 | 6 | 
| 7 #ifndef JINGLE_NOTIFIER_BASE_CHROME_ASYNC_SOCKET_H_ | 7 #ifndef JINGLE_NOTIFIER_BASE_CHROME_ASYNC_SOCKET_H_ | 
| 8 #define JINGLE_NOTIFIER_BASE_CHROME_ASYNC_SOCKET_H_ | 8 #define JINGLE_NOTIFIER_BASE_CHROME_ASYNC_SOCKET_H_ | 
| 9 | 9 | 
| 10 #if !defined(FEATURE_ENABLE_SSL) | 10 #if !defined(FEATURE_ENABLE_SSL) | 
| 11 #error ChromeAsyncSocket expects FEATURE_ENABLE_SSL to be defined | 11 #error ChromeAsyncSocket expects FEATURE_ENABLE_SSL to be defined | 
| 12 #endif | 12 #endif | 
| 13 | 13 | 
| 14 #include <string> | 14 #include <string> | 
| 15 #include <vector> | 15 #include <vector> | 
| 16 | 16 | 
| 17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" | 
| 18 #include "base/ref_counted.h" | 18 #include "base/ref_counted.h" | 
| 19 #include "base/scoped_ptr.h" | 19 #include "base/scoped_ptr.h" | 
| 20 #include "base/task.h" | 20 #include "base/task.h" | 
| 21 #include "net/base/completion_callback.h" | 21 #include "net/base/completion_callback.h" | 
| 22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" | 
| 23 #include "net/base/net_log.h" | 23 #include "net/base/net_log.h" | 
| 24 #include "net/base/ssl_config_service.h" | 24 #include "net/base/ssl_config_service.h" | 
| 25 #include "talk/xmpp/asyncsocket.h" | 25 #include "talk/xmpp/asyncsocket.h" | 
| 26 | 26 | 
| 27 namespace net { | 27 namespace net { | 
| 28 class ClientSocket; | 28 class ClientSocket; | 
| 29 class ClientSocketFactory; | 29 class ClientSocketFactory; | 
| 30 class HostPortPair; | |
| 
wtc
2010/11/12 00:12:55
Should this forward declaration be removed? HostPo
 
Ryan Hamilton
2010/11/12 00:47:30
Done.
 | |
| 30 class IOBufferWithSize; | 31 class IOBufferWithSize; | 
| 31 } // namespace net | 32 } // namespace net | 
| 32 | 33 | 
| 33 namespace notifier { | 34 namespace notifier { | 
| 34 | 35 | 
| 35 class ChromeAsyncSocket : public buzz::AsyncSocket { | 36 class ChromeAsyncSocket : public buzz::AsyncSocket { | 
| 36 public: | 37 public: | 
| 37 // Takes ownership of |client_socket_factory| but not |net_log|. | 38 // Takes ownership of |client_socket_factory| but not |net_log|. | 
| 38 // |net_log| may be NULL. | 39 // |net_log| may be NULL. | 
| 39 ChromeAsyncSocket(net::ClientSocketFactory* client_socket_factory, | 40 ChromeAsyncSocket(net::ClientSocketFactory* client_socket_factory, | 
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 216 AsyncIOState write_state_; | 217 AsyncIOState write_state_; | 
| 217 scoped_refptr<net::IOBufferWithSize> write_buf_; | 218 scoped_refptr<net::IOBufferWithSize> write_buf_; | 
| 218 size_t write_end_; | 219 size_t write_end_; | 
| 219 | 220 | 
| 220 DISALLOW_COPY_AND_ASSIGN(ChromeAsyncSocket); | 221 DISALLOW_COPY_AND_ASSIGN(ChromeAsyncSocket); | 
| 221 }; | 222 }; | 
| 222 | 223 | 
| 223 } // namespace notifier | 224 } // namespace notifier | 
| 224 | 225 | 
| 225 #endif // JINGLE_NOTIFIER_BASE_CHROME_ASYNC_SOCKET_H_ | 226 #endif // JINGLE_NOTIFIER_BASE_CHROME_ASYNC_SOCKET_H_ | 
| OLD | NEW |