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

Unified Diff: net/socket_stream/socket_stream.cc

Issue 10854063: Clean-up inline members of nested classes (net/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add a NET_EXPOR_PRIVATE Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket_stream/socket_stream.h ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket_stream/socket_stream.cc
diff --git a/net/socket_stream/socket_stream.cc b/net/socket_stream/socket_stream.cc
index 43492b39832e97f76a9b328674dd8d1552cdd658..ce989828a94515cd307d16945d3fa44605901c41 100644
--- a/net/socket_stream/socket_stream.cc
+++ b/net/socket_stream/socket_stream.cc
@@ -44,6 +44,36 @@ static const int kReadBufferSize = 4096;
namespace net {
+int SocketStream::Delegate::OnStartOpenConnection(
+ SocketStream* socket, const CompletionCallback& callback) {
+ return OK;
+}
+
+void SocketStream::Delegate::OnAuthRequired(SocketStream* socket,
+ AuthChallengeInfo* auth_info) {
+ // By default, no credential is available and close the connection.
+ socket->Close();
+}
+
+void SocketStream::Delegate::OnSSLCertificateError(
+ SocketStream* socket,
+ const SSLInfo& ssl_info,
+ bool fatal) {
+ socket->CancelWithSSLError(ssl_info);
+}
+
+bool SocketStream::Delegate::CanGetCookies(SocketStream* socket,
+ const GURL& url) {
+ return true;
+}
+
+bool SocketStream::Delegate::CanSetCookie(SocketStream* request,
+ const GURL& url,
+ const std::string& cookie_line,
+ CookieOptions* options) {
+ return true;
+}
+
SocketStream::ResponseHeaders::ResponseHeaders() : IOBuffer() {}
void SocketStream::ResponseHeaders::Realloc(size_t new_size) {
@@ -273,6 +303,8 @@ SocketStream::~SocketStream() {
DCHECK(!pac_request_);
}
+SocketStream::RequestHeaders::~RequestHeaders() { data_ = NULL; }
+
void SocketStream::set_addresses(const AddressList& addresses) {
addresses_ = addresses;
}
« no previous file with comments | « net/socket_stream/socket_stream.h ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698