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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 void NotifyBeforeStartTransactionCallback(int result); | 106 void NotifyBeforeStartTransactionCallback(int result); |
107 void NotifyBeforeSendHeadersCallback(const ProxyInfo& proxy_info, | 107 void NotifyBeforeSendHeadersCallback(const ProxyInfo& proxy_info, |
108 HttpRequestHeaders* request_headers); | 108 HttpRequestHeaders* request_headers); |
109 | 109 |
110 void RestartTransactionWithAuth(const AuthCredentials& credentials); | 110 void RestartTransactionWithAuth(const AuthCredentials& credentials); |
111 | 111 |
112 // Overridden from URLRequestJob: | 112 // Overridden from URLRequestJob: |
113 void SetUpload(UploadDataStream* upload) override; | 113 void SetUpload(UploadDataStream* upload) override; |
114 void SetExtraRequestHeaders(const HttpRequestHeaders& headers) override; | 114 void SetExtraRequestHeaders(const HttpRequestHeaders& headers) override; |
115 LoadState GetLoadState() const override; | 115 LoadState GetLoadState() const override; |
116 UploadProgress GetUploadProgress() const override; | |
117 bool GetMimeType(std::string* mime_type) const override; | 116 bool GetMimeType(std::string* mime_type) const override; |
118 bool GetCharset(std::string* charset) override; | 117 bool GetCharset(std::string* charset) override; |
119 void GetResponseInfo(HttpResponseInfo* info) override; | 118 void GetResponseInfo(HttpResponseInfo* info) override; |
120 void GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 119 void GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
121 bool GetRemoteEndpoint(IPEndPoint* endpoint) const override; | 120 bool GetRemoteEndpoint(IPEndPoint* endpoint) const override; |
122 int GetResponseCode() const override; | 121 int GetResponseCode() const override; |
123 void PopulateNetErrorDetails(NetErrorDetails* details) const override; | 122 void PopulateNetErrorDetails(NetErrorDetails* details) const override; |
124 std::unique_ptr<Filter> SetupFilter() const override; | 123 std::unique_ptr<Filter> SetupFilter() const override; |
125 bool CopyFragmentOnRedirect(const GURL& location) const override; | 124 bool CopyFragmentOnRedirect(const GURL& location) const override; |
126 bool IsSafeRedirect(const GURL& location) override; | 125 bool IsSafeRedirect(const GURL& location) override; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 int64_t total_sent_bytes_from_previous_transactions_; | 272 int64_t total_sent_bytes_from_previous_transactions_; |
274 | 273 |
275 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 274 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
276 | 275 |
277 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 276 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
278 }; | 277 }; |
279 | 278 |
280 } // namespace net | 279 } // namespace net |
281 | 280 |
282 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 281 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |