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

Side by Side Diff: net/spdy/spdy_network_transaction.h

Issue 3040016: Net: Convert username and password to string16. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address comments Created 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/socket_stream/socket_stream_unittest.cc ('k') | net/spdy/spdy_network_transaction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef NET_SPDY_NETWORK_TRANSACTION_H_ 5 #ifndef NET_SPDY_SPDY_NETWORK_TRANSACTION_H_
6 #define NET_SPDY_NETWORK_TRANSACTION_H_ 6 #define NET_SPDY_SPDY_NETWORK_TRANSACTION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string>
10 #include <deque> 9 #include <deque>
11 10
12 #include "base/basictypes.h" 11 #include "base/basictypes.h"
13 #include "base/ref_counted.h" 12 #include "base/ref_counted.h"
14 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "base/string16.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "net/base/completion_callback.h" 16 #include "net/base/completion_callback.h"
17 #include "net/base/load_states.h" 17 #include "net/base/load_states.h"
18 #include "net/base/net_log.h" 18 #include "net/base/net_log.h"
19 #include "net/http/http_response_info.h" 19 #include "net/http/http_response_info.h"
20 #include "net/http/http_transaction.h" 20 #include "net/http/http_transaction.h"
21 #include "net/spdy/spdy_session.h" 21 #include "net/spdy/spdy_session.h"
22 22
23 namespace net { 23 namespace net {
24 24
(...skipping 11 matching lines...) Expand all
36 explicit SpdyNetworkTransaction(HttpNetworkSession* session); 36 explicit SpdyNetworkTransaction(HttpNetworkSession* session);
37 virtual ~SpdyNetworkTransaction(); 37 virtual ~SpdyNetworkTransaction();
38 38
39 // HttpTransaction methods: 39 // HttpTransaction methods:
40 virtual int Start(const HttpRequestInfo* request_info, 40 virtual int Start(const HttpRequestInfo* request_info,
41 CompletionCallback* callback, 41 CompletionCallback* callback,
42 const BoundNetLog& net_log); 42 const BoundNetLog& net_log);
43 virtual int RestartIgnoringLastError(CompletionCallback* callback); 43 virtual int RestartIgnoringLastError(CompletionCallback* callback);
44 virtual int RestartWithCertificate(X509Certificate* client_cert, 44 virtual int RestartWithCertificate(X509Certificate* client_cert,
45 CompletionCallback* callback); 45 CompletionCallback* callback);
46 virtual int RestartWithAuth(const std::wstring& username, 46 virtual int RestartWithAuth(const string16& username,
47 const std::wstring& password, 47 const string16& password,
48 CompletionCallback* callback); 48 CompletionCallback* callback);
49 virtual bool IsReadyToRestartForAuth() { return false; } 49 virtual bool IsReadyToRestartForAuth() { return false; }
50 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 50 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
51 virtual void StopCaching() {} 51 virtual void StopCaching() {}
52 virtual const HttpResponseInfo* GetResponseInfo() const; 52 virtual const HttpResponseInfo* GetResponseInfo() const;
53 virtual LoadState GetLoadState() const; 53 virtual LoadState GetLoadState() const;
54 virtual uint64 GetUploadProgress() const; 54 virtual uint64 GetUploadProgress() const;
55 55
56 private: 56 private:
57 FRIEND_TEST(SpdyNetworkTransactionTest, WindowUpdate); 57 FRIEND_TEST(SpdyNetworkTransactionTest, WindowUpdate);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // The next state in the state machine. 114 // The next state in the state machine.
115 State next_state_; 115 State next_state_;
116 116
117 scoped_ptr<SpdyHttpStream> stream_; 117 scoped_ptr<SpdyHttpStream> stream_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(SpdyNetworkTransaction); 119 DISALLOW_COPY_AND_ASSIGN(SpdyNetworkTransaction);
120 }; 120 };
121 121
122 } // namespace net 122 } // namespace net
123 123
124 #endif // NET_SPDY_NETWORK_TRANSACTION_H_ 124 #endif // NET_SPDY_SPDY_NETWORK_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/socket_stream/socket_stream_unittest.cc ('k') | net/spdy/spdy_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698