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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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
« no previous file with comments | « net/url_request/url_request_ftp_job.h ('k') | net/url_request/url_request_http_job.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_HTTP_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
7 7
8 #include <stddef.h>
8 #include <stdint.h> 9 #include <stdint.h>
9 10
10 #include <string> 11 #include <string>
11 #include <vector> 12 #include <vector>
12 13
13 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
16 #include "base/time/time.h" 18 #include "base/time/time.h"
17 #include "net/base/auth.h" 19 #include "net/base/auth.h"
18 #include "net/base/completion_callback.h" 20 #include "net/base/completion_callback.h"
19 #include "net/base/net_error_details.h" 21 #include "net/base/net_error_details.h"
20 #include "net/base/net_export.h" 22 #include "net/base/net_export.h"
21 #include "net/base/sdch_manager.h" 23 #include "net/base/sdch_manager.h"
22 #include "net/cookies/cookie_store.h" 24 #include "net/cookies/cookie_store.h"
23 #include "net/filter/filter.h" 25 #include "net/filter/filter.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override; 130 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override;
129 void SetAuth(const AuthCredentials& credentials) override; 131 void SetAuth(const AuthCredentials& credentials) override;
130 void CancelAuth() override; 132 void CancelAuth() override;
131 void ContinueWithCertificate(X509Certificate* client_cert, 133 void ContinueWithCertificate(X509Certificate* client_cert,
132 SSLPrivateKey* client_private_key) override; 134 SSLPrivateKey* client_private_key) override;
133 void ContinueDespiteLastError() override; 135 void ContinueDespiteLastError() override;
134 void ResumeNetworkStart() override; 136 void ResumeNetworkStart() override;
135 int ReadRawData(IOBuffer* buf, int buf_size) override; 137 int ReadRawData(IOBuffer* buf, int buf_size) override;
136 void StopCaching() override; 138 void StopCaching() override;
137 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; 139 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override;
138 int64 GetTotalReceivedBytes() const override; 140 int64_t GetTotalReceivedBytes() const override;
139 int64_t GetTotalSentBytes() const override; 141 int64_t GetTotalSentBytes() const override;
140 void DoneReading() override; 142 void DoneReading() override;
141 void DoneReadingRedirectResponse() override; 143 void DoneReadingRedirectResponse() override;
142 144
143 HostPortPair GetSocketAddress() const override; 145 HostPortPair GetSocketAddress() const override;
144 void NotifyURLRequestDestroyed() override; 146 void NotifyURLRequestDestroyed() override;
145 147
146 void RecordTimer(); 148 void RecordTimer();
147 void ResetTimer(); 149 void ResetTimer();
148 150
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // boundaries, rather than approximations. Also note that input byte count 233 // boundaries, rather than approximations. Also note that input byte count
232 // as gathered here is post-SSL, and post-cache-fetch, and does not reflect 234 // as gathered here is post-SSL, and post-cache-fetch, and does not reflect
233 // true packet arrival times in such cases. 235 // true packet arrival times in such cases.
234 236
235 // Enable recording of packet arrival times for histogramming. 237 // Enable recording of packet arrival times for histogramming.
236 bool packet_timing_enabled_; 238 bool packet_timing_enabled_;
237 bool done_; // True when we are done doing work. 239 bool done_; // True when we are done doing work.
238 240
239 // The number of bytes that have been accounted for in packets (where some of 241 // The number of bytes that have been accounted for in packets (where some of
240 // those packets may possibly have had their time of arrival recorded). 242 // those packets may possibly have had their time of arrival recorded).
241 int64 bytes_observed_in_packets_; 243 int64_t bytes_observed_in_packets_;
242 244
243 // The request time may not be available when we are being destroyed, so we 245 // The request time may not be available when we are being destroyed, so we
244 // snapshot it early on. 246 // snapshot it early on.
245 base::Time request_time_snapshot_; 247 base::Time request_time_snapshot_;
246 248
247 // Since we don't save all packet times in packet_times_, we save the 249 // Since we don't save all packet times in packet_times_, we save the
248 // last time for use in histograms. 250 // last time for use in histograms.
249 base::Time final_packet_time_; 251 base::Time final_packet_time_;
250 252
251 // The start time for the job, ignoring re-starts. 253 // The start time for the job, ignoring re-starts.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 int64_t total_sent_bytes_from_previous_transactions_; 289 int64_t total_sent_bytes_from_previous_transactions_;
288 290
289 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; 291 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_;
290 292
291 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 293 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
292 }; 294 };
293 295
294 } // namespace net 296 } // namespace net
295 297
296 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 298 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_ftp_job.h ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698