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

Side by Side Diff: net/socket_stream/socket_stream_job.cc

Issue 8340026: Use AuthCredentials throughout the network stack instead of username/password. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: mac compile fix Created 9 years, 1 month 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698