OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/spdy/spdy_network_transaction.h" | 5 #include "net/spdy/spdy_network_transaction.h" |
6 | 6 |
| 7 #include <string> |
| 8 |
7 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 10 #include "base/logging.h" |
9 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
10 #include "base/stats_counters.h" | 12 #include "base/stats_counters.h" |
11 #include "net/base/host_resolver.h" | 13 #include "net/base/host_resolver.h" |
12 #include "net/base/io_buffer.h" | 14 #include "net/base/io_buffer.h" |
13 #include "net/base/load_flags.h" | 15 #include "net/base/load_flags.h" |
14 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
15 #include "net/base/net_log.h" | 17 #include "net/base/net_log.h" |
16 #include "net/base/net_util.h" | 18 #include "net/base/net_util.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 } | 73 } |
72 | 74 |
73 int SpdyNetworkTransaction::RestartWithCertificate( | 75 int SpdyNetworkTransaction::RestartWithCertificate( |
74 X509Certificate* client_cert, CompletionCallback* callback) { | 76 X509Certificate* client_cert, CompletionCallback* callback) { |
75 // TODO(mbelshe): implement me. | 77 // TODO(mbelshe): implement me. |
76 NOTIMPLEMENTED(); | 78 NOTIMPLEMENTED(); |
77 return ERR_NOT_IMPLEMENTED; | 79 return ERR_NOT_IMPLEMENTED; |
78 } | 80 } |
79 | 81 |
80 int SpdyNetworkTransaction::RestartWithAuth( | 82 int SpdyNetworkTransaction::RestartWithAuth( |
81 const std::wstring& username, | 83 const string16& username, |
82 const std::wstring& password, | 84 const string16& password, |
83 CompletionCallback* callback) { | 85 CompletionCallback* callback) { |
84 // TODO(mbelshe): implement me. | 86 // TODO(mbelshe): implement me. |
85 NOTIMPLEMENTED(); | 87 NOTIMPLEMENTED(); |
86 return 0; | 88 return 0; |
87 } | 89 } |
88 | 90 |
89 int SpdyNetworkTransaction::Read(IOBuffer* buf, int buf_len, | 91 int SpdyNetworkTransaction::Read(IOBuffer* buf, int buf_len, |
90 CompletionCallback* callback) { | 92 CompletionCallback* callback) { |
91 DCHECK(buf); | 93 DCHECK(buf); |
92 DCHECK_GT(buf_len, 0); | 94 DCHECK_GT(buf_len, 0); |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 user_buffer_ = NULL; | 318 user_buffer_ = NULL; |
317 user_buffer_len_ = 0; | 319 user_buffer_len_ = 0; |
318 | 320 |
319 if (result <= 0) | 321 if (result <= 0) |
320 stream_.reset(); | 322 stream_.reset(); |
321 | 323 |
322 return result; | 324 return result; |
323 } | 325 } |
324 | 326 |
325 } // namespace net | 327 } // namespace net |
OLD | NEW |