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

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: 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
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..9e502a0ffa52884d64514e76d3e95b65bfc471e3 100644
--- a/net/socket_stream/socket_stream.cc
+++ b/net/socket_stream/socket_stream.cc
@@ -44,6 +44,38 @@ 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::RequestHeaders::~RequestHeaders() { data_ = NULL; }
mmenke 2012/08/09 15:13:35 This should be lower in the file, in the same orde
hans 2012/08/09 15:35:42 Done.
+
SocketStream::ResponseHeaders::ResponseHeaders() : IOBuffer() {}
void SocketStream::ResponseHeaders::Realloc(size_t new_size) {

Powered by Google App Engine
This is Rietveld 408576698