| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "net/socket_stream/socket_stream_job.h" | 5 #include "net/socket_stream/socket_stream_job.h" |
| 6 | 6 |
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 #include "net/base/ssl_config_service.h" | 8 #include "net/base/ssl_config_service.h" |
| 9 #include "net/base/transport_security_state.h" | 9 #include "net/base/transport_security_state.h" |
| 10 #include "net/socket_stream/socket_stream_job_manager.h" | 10 #include "net/socket_stream/socket_stream_job_manager.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 | 56 |
| 57 bool SocketStreamJob::SendData(const char* data, int len) { | 57 bool SocketStreamJob::SendData(const char* data, int len) { |
| 58 return socket_->SendData(data, len); | 58 return socket_->SendData(data, len); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void SocketStreamJob::Close() { | 61 void SocketStreamJob::Close() { |
| 62 socket_->Close(); | 62 socket_->Close(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void SocketStreamJob::RestartWithAuth(const string16& username, | 65 void SocketStreamJob::RestartWithAuth(const AuthCredentials& credentials) { |
| 66 const string16& password) { | 66 socket_->RestartWithAuth(credentials); |
| 67 socket_->RestartWithAuth(username, password); | |
| 68 } | 67 } |
| 69 | 68 |
| 70 void SocketStreamJob::DetachDelegate() { | 69 void SocketStreamJob::DetachDelegate() { |
| 71 socket_->DetachDelegate(); | 70 socket_->DetachDelegate(); |
| 72 } | 71 } |
| 73 | 72 |
| 74 SocketStreamJob::~SocketStreamJob() {} | 73 SocketStreamJob::~SocketStreamJob() {} |
| 75 | 74 |
| 76 } // namespace net | 75 } // namespace net |
| OLD | NEW |