Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: chrome/browser/sync/notifier/communicator/ssl_socket_adapter.h

Issue 598071: Really connect to the same server in FTP network transaction. (Closed)
Patch Set: updates Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/sync/notifier/communicator/ssl_socket_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_COMMUNICATOR_SSL_SOCKET_ADAPTER_H_ 5 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_COMMUNICATOR_SSL_SOCKET_ADAPTER_H_
6 #define CHROME_BROWSER_SYNC_NOTIFIER_COMMUNICATOR_SSL_SOCKET_ADAPTER_H_ 6 #define CHROME_BROWSER_SYNC_NOTIFIER_COMMUNICATOR_SSL_SOCKET_ADAPTER_H_
7 7
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "net/base/completion_callback.h" 9 #include "net/base/completion_callback.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 24 matching lines...) Expand all
35 addr_ = addr; 35 addr_ = addr;
36 } 36 }
37 37
38 // net::ClientSocket implementation 38 // net::ClientSocket implementation
39 39
40 virtual int Connect(net::CompletionCallback* callback, 40 virtual int Connect(net::CompletionCallback* callback,
41 net::LoadLog* /* load_log */); 41 net::LoadLog* /* load_log */);
42 virtual void Disconnect(); 42 virtual void Disconnect();
43 virtual bool IsConnected() const; 43 virtual bool IsConnected() const;
44 virtual bool IsConnectedAndIdle() const; 44 virtual bool IsConnectedAndIdle() const;
45 virtual int GetPeerName(struct sockaddr* name, socklen_t* namelen); 45 virtual int GetPeerAddress(net::AddressList* address) const;
46 46
47 // net::Socket implementation 47 // net::Socket implementation
48 48
49 virtual int Read(net::IOBuffer* buf, int buf_len, 49 virtual int Read(net::IOBuffer* buf, int buf_len,
50 net::CompletionCallback* callback); 50 net::CompletionCallback* callback);
51 virtual int Write(net::IOBuffer* buf, int buf_len, 51 virtual int Write(net::IOBuffer* buf, int buf_len,
52 net::CompletionCallback* callback); 52 net::CompletionCallback* callback);
53 virtual bool SetReceiveBufferSize(int32 size); 53 virtual bool SetReceiveBufferSize(int32 size);
54 virtual bool SetSendBufferSize(int32 size); 54 virtual bool SetSendBufferSize(int32 size);
55 55
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 State state_; 126 State state_;
127 scoped_refptr<net::IOBuffer> transport_buf_; 127 scoped_refptr<net::IOBuffer> transport_buf_;
128 int data_transferred_; 128 int data_transferred_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(SSLSocketAdapter); 130 DISALLOW_COPY_AND_ASSIGN(SSLSocketAdapter);
131 }; 131 };
132 132
133 } // namespace notifier 133 } // namespace notifier
134 134
135 #endif // CHROME_BROWSER_SYNC_NOTIFIER_COMMUNICATOR_SSL_SOCKET_ADAPTER_H_ 135 #endif // CHROME_BROWSER_SYNC_NOTIFIER_COMMUNICATOR_SSL_SOCKET_ADAPTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/notifier/communicator/ssl_socket_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698