| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_FLIP_NETWORK_TRANSACTION_H_ | 5 #ifndef NET_FLIP_NETWORK_TRANSACTION_H_ |
| 6 #define NET_FLIP_NETWORK_TRANSACTION_H_ | 6 #define NET_FLIP_NETWORK_TRANSACTION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <deque> | 9 #include <deque> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // The FlipDelegate is the consumer of events from the FlipSession. | 37 // The FlipDelegate is the consumer of events from the FlipSession. |
| 38 class FlipNetworkTransaction : public HttpTransaction, public FlipDelegate { | 38 class FlipNetworkTransaction : public HttpTransaction, public FlipDelegate { |
| 39 public: | 39 public: |
| 40 explicit FlipNetworkTransaction(HttpNetworkSession* session); | 40 explicit FlipNetworkTransaction(HttpNetworkSession* session); |
| 41 virtual ~FlipNetworkTransaction(); | 41 virtual ~FlipNetworkTransaction(); |
| 42 | 42 |
| 43 // FlipDelegate methods: | 43 // FlipDelegate methods: |
| 44 virtual const HttpRequestInfo* request(); | 44 virtual const HttpRequestInfo* request(); |
| 45 virtual const UploadDataStream* data(); | 45 virtual const UploadDataStream* data(); |
| 46 virtual void OnRequestSent(int status); | 46 virtual void OnRequestSent(int status); |
| 47 virtual void OnUploadDataSent(int result); |
| 47 virtual void OnResponseReceived(HttpResponseInfo* response); | 48 virtual void OnResponseReceived(HttpResponseInfo* response); |
| 48 virtual void OnDataReceived(const char* buffer, int bytes); | 49 virtual void OnDataReceived(const char* buffer, int bytes); |
| 49 virtual void OnClose(int status); | 50 virtual void OnClose(int status); |
| 50 virtual void OnCancel(); | |
| 51 | 51 |
| 52 // HttpTransaction methods: | 52 // HttpTransaction methods: |
| 53 virtual int Start(const HttpRequestInfo* request_info, | 53 virtual int Start(const HttpRequestInfo* request_info, |
| 54 CompletionCallback* callback, | 54 CompletionCallback* callback, |
| 55 LoadLog* load_log); | 55 LoadLog* load_log); |
| 56 virtual int RestartIgnoringLastError(CompletionCallback* callback); | 56 virtual int RestartIgnoringLastError(CompletionCallback* callback); |
| 57 virtual int RestartWithCertificate(X509Certificate* client_cert, | 57 virtual int RestartWithCertificate(X509Certificate* client_cert, |
| 58 CompletionCallback* callback); | 58 CompletionCallback* callback); |
| 59 virtual int RestartWithAuth(const std::wstring& username, | 59 virtual int RestartWithAuth(const std::wstring& username, |
| 60 const std::wstring& password, | 60 const std::wstring& password, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 base::Time start_time_; | 133 base::Time start_time_; |
| 134 | 134 |
| 135 // The next state in the state machine. | 135 // The next state in the state machine. |
| 136 State next_state_; | 136 State next_state_; |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } // namespace net | 139 } // namespace net |
| 140 | 140 |
| 141 #endif // NET_HTTP_NETWORK_TRANSACTION_H_ | 141 #endif // NET_HTTP_NETWORK_TRANSACTION_H_ |
| 142 | 142 |
| OLD | NEW |