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

Side by Side Diff: net/flip/flip_network_transaction.h

Issue 339047: Cleanup the FlipDelegate API a bit in prep for fixing upload.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/flip/flip_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) 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
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
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
OLDNEW
« no previous file with comments | « no previous file | net/flip/flip_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698