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

Side by Side Diff: net/url_request/url_request_job.h

Issue 7276: Adding security info to canceled requests (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_URL_REQUEST_URL_REQUEST_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // with a URLRequestJobMetrics object. The caller owns this object from now 186 // with a URLRequestJobMetrics object. The caller owns this object from now
187 // on. 187 // on.
188 URLRequestJobMetrics* RetrieveMetrics(); 188 URLRequestJobMetrics* RetrieveMetrics();
189 189
190 // Get/Set expected content size 190 // Get/Set expected content size
191 int64 expected_content_size() const { return expected_content_size_; } 191 int64 expected_content_size() const { return expected_content_size_; }
192 void set_expected_content_size(const int64& size) { 192 void set_expected_content_size(const int64& size) {
193 expected_content_size_ = size; 193 expected_content_size_ = size;
194 } 194 }
195 195
196 // Whether we have processed the response for that request yet.
197 bool has_response_started() const { return has_handled_response_; }
198
196 protected: 199 protected:
197 // Notifies the job that headers have been received. 200 // Notifies the job that headers have been received.
198 void NotifyHeadersComplete(); 201 void NotifyHeadersComplete();
199 202
200 // Notifies the request that the job has completed a Read operation. 203 // Notifies the request that the job has completed a Read operation.
201 void NotifyReadComplete(int bytes_read); 204 void NotifyReadComplete(int bytes_read);
202 205
203 // Notifies the request that a start error has occurred. 206 // Notifies the request that a start error has occurred.
204 void NotifyStartError(const URLRequestStatus &status); 207 void NotifyStartError(const URLRequestStatus &status);
205 208
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 bool has_handled_response_; 301 bool has_handled_response_;
299 302
300 // Expected content size 303 // Expected content size
301 int64 expected_content_size_; 304 int64 expected_content_size_;
302 305
303 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); 306 DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
304 }; 307 };
305 308
306 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ 309 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_
307 310
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698