| 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 #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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |