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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // Processes a Backoff header, if one exists. | 92 // Processes a Backoff header, if one exists. |
93 void ProcessBackoffHeader(); | 93 void ProcessBackoffHeader(); |
94 | 94 |
95 // Processes the Strict-Transport-Security header, if one exists. | 95 // Processes the Strict-Transport-Security header, if one exists. |
96 void ProcessStrictTransportSecurityHeader(); | 96 void ProcessStrictTransportSecurityHeader(); |
97 | 97 |
98 // Processes the Public-Key-Pins header, if one exists. | 98 // Processes the Public-Key-Pins header, if one exists. |
99 void ProcessPublicKeyPinsHeader(); | 99 void ProcessPublicKeyPinsHeader(); |
100 | 100 |
| 101 // Processes the Expect-CT header, if one exists. This header |
| 102 // indicates that the server wants the user agent to send a report |
| 103 // when a connection violates the Expect CT policy. |
| 104 void ProcessExpectCTHeader(); |
| 105 |
101 // |result| should be OK, or the request is canceled. | 106 // |result| should be OK, or the request is canceled. |
102 void OnHeadersReceivedCallback(int result); | 107 void OnHeadersReceivedCallback(int result); |
103 void OnStartCompleted(int result); | 108 void OnStartCompleted(int result); |
104 void OnReadCompleted(int result); | 109 void OnReadCompleted(int result); |
105 void NotifyBeforeSendHeadersCallback(int result); | 110 void NotifyBeforeSendHeadersCallback(int result); |
106 void NotifyBeforeSendProxyHeadersCallback( | 111 void NotifyBeforeSendProxyHeadersCallback( |
107 const ProxyInfo& proxy_info, | 112 const ProxyInfo& proxy_info, |
108 HttpRequestHeaders* request_headers); | 113 HttpRequestHeaders* request_headers); |
109 | 114 |
110 void RestartTransactionWithAuth(const AuthCredentials& credentials); | 115 void RestartTransactionWithAuth(const AuthCredentials& credentials); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 int64_t total_sent_bytes_from_previous_transactions_; | 281 int64_t total_sent_bytes_from_previous_transactions_; |
277 | 282 |
278 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 283 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
279 | 284 |
280 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 285 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
281 }; | 286 }; |
282 | 287 |
283 } // namespace net | 288 } // namespace net |
284 | 289 |
285 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 290 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |