| OLD | NEW |
| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 typedef base::RefCountedData<bool> SharedBoolean; | 71 typedef base::RefCountedData<bool> SharedBoolean; |
| 72 | 72 |
| 73 class HttpFilterContext; | 73 class HttpFilterContext; |
| 74 | 74 |
| 75 // Shadows URLRequestJob's version of this method. | 75 // Shadows URLRequestJob's version of this method. |
| 76 void NotifyBeforeNetworkStart(bool* defer); | 76 void NotifyBeforeNetworkStart(bool* defer); |
| 77 | 77 |
| 78 // Shadows URLRequestJob's version of this method so we can grab cookies. | 78 // Shadows URLRequestJob's version of this method so we can grab cookies. |
| 79 void NotifyHeadersComplete(); | 79 void NotifyHeadersComplete(); |
| 80 | 80 |
| 81 // Shadows URLRequestJob's method so we can record histograms. | |
| 82 void NotifyDone(const URLRequestStatus& status); | |
| 83 | |
| 84 void DestroyTransaction(); | 81 void DestroyTransaction(); |
| 85 | 82 |
| 86 void AddExtraHeaders(); | 83 void AddExtraHeaders(); |
| 87 void AddCookieHeaderAndStart(); | 84 void AddCookieHeaderAndStart(); |
| 88 void SaveCookiesAndNotifyHeadersComplete(int result); | 85 void SaveCookiesAndNotifyHeadersComplete(int result); |
| 89 void SaveNextCookie(); | 86 void SaveNextCookie(); |
| 90 void FetchResponseCookies(std::vector<std::string>* cookies); | 87 void FetchResponseCookies(std::vector<std::string>* cookies); |
| 91 | 88 |
| 92 // Processes a Backoff header, if one exists. | 89 // Processes a Backoff header, if one exists. |
| 93 void ProcessBackoffHeader(); | 90 void ProcessBackoffHeader(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 124 Filter* SetupFilter() const override; | 121 Filter* SetupFilter() const override; |
| 125 bool CopyFragmentOnRedirect(const GURL& location) const override; | 122 bool CopyFragmentOnRedirect(const GURL& location) const override; |
| 126 bool IsSafeRedirect(const GURL& location) override; | 123 bool IsSafeRedirect(const GURL& location) override; |
| 127 bool NeedsAuth() override; | 124 bool NeedsAuth() override; |
| 128 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override; | 125 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override; |
| 129 void SetAuth(const AuthCredentials& credentials) override; | 126 void SetAuth(const AuthCredentials& credentials) override; |
| 130 void CancelAuth() override; | 127 void CancelAuth() override; |
| 131 void ContinueWithCertificate(X509Certificate* client_cert) override; | 128 void ContinueWithCertificate(X509Certificate* client_cert) override; |
| 132 void ContinueDespiteLastError() override; | 129 void ContinueDespiteLastError() override; |
| 133 void ResumeNetworkStart() override; | 130 void ResumeNetworkStart() override; |
| 134 bool ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) override; | 131 int ReadRawData(IOBuffer* buf, int buf_size) override; |
| 135 void StopCaching() override; | 132 void StopCaching() override; |
| 136 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; | 133 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; |
| 137 int64 GetTotalReceivedBytes() const override; | 134 int64 GetTotalReceivedBytes() const override; |
| 138 int64_t GetTotalSentBytes() const override; | 135 int64_t GetTotalSentBytes() const override; |
| 139 void DoneReading() override; | 136 void DoneReading() override; |
| 140 void DoneReadingRedirectResponse() override; | 137 void DoneReadingRedirectResponse() override; |
| 141 | 138 |
| 142 HostPortPair GetSocketAddress() const override; | 139 HostPortPair GetSocketAddress() const override; |
| 143 void NotifyURLRequestDestroyed() override; | 140 void NotifyURLRequestDestroyed() override; |
| 144 | 141 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 int64_t total_sent_bytes_from_previous_transactions_; | 283 int64_t total_sent_bytes_from_previous_transactions_; |
| 287 | 284 |
| 288 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 285 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
| 289 | 286 |
| 290 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 287 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 291 }; | 288 }; |
| 292 | 289 |
| 293 } // namespace net | 290 } // namespace net |
| 294 | 291 |
| 295 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 292 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |