| 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 #include "net/http/http_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 start_time_ = base::Time::Now(); | 189 start_time_ = base::Time::Now(); |
| 190 | 190 |
| 191 if (request_->load_flags & LOAD_DISABLE_CERT_REVOCATION_CHECKING) { | 191 if (request_->load_flags & LOAD_DISABLE_CERT_REVOCATION_CHECKING) { |
| 192 server_ssl_config_.rev_checking_enabled = false; | 192 server_ssl_config_.rev_checking_enabled = false; |
| 193 proxy_ssl_config_.rev_checking_enabled = false; | 193 proxy_ssl_config_.rev_checking_enabled = false; |
| 194 } | 194 } |
| 195 | 195 |
| 196 // Channel ID is enabled unless --disable-tls-channel-id flag is set, | 196 // Channel ID is enabled unless --disable-tls-channel-id flag is set, |
| 197 // or if privacy mode is enabled. | 197 // or if privacy mode is enabled. |
| 198 bool channel_id_enabled = server_ssl_config_.channel_id_enabled && | 198 bool channel_id_enabled = server_ssl_config_.channel_id_enabled && |
| 199 (request_->privacy_mode == PRIVACY_MODE_DISABLED); | 199 (request_->privacy_mode == kPrivacyModeDisabled); |
| 200 server_ssl_config_.channel_id_enabled = channel_id_enabled; | 200 server_ssl_config_.channel_id_enabled = channel_id_enabled; |
| 201 | 201 |
| 202 next_state_ = STATE_NOTIFY_BEFORE_CREATE_STREAM; | 202 next_state_ = STATE_NOTIFY_BEFORE_CREATE_STREAM; |
| 203 int rv = DoLoop(OK); | 203 int rv = DoLoop(OK); |
| 204 if (rv == ERR_IO_PENDING) | 204 if (rv == ERR_IO_PENDING) |
| 205 callback_ = callback; | 205 callback_ = callback; |
| 206 return rv; | 206 return rv; |
| 207 } | 207 } |
| 208 | 208 |
| 209 int HttpNetworkTransaction::RestartIgnoringLastError( | 209 int HttpNetworkTransaction::RestartIgnoringLastError( |
| (...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1621 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, | 1621 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, |
| 1622 state); | 1622 state); |
| 1623 break; | 1623 break; |
| 1624 } | 1624 } |
| 1625 return description; | 1625 return description; |
| 1626 } | 1626 } |
| 1627 | 1627 |
| 1628 #undef STATE_CASE | 1628 #undef STATE_CASE |
| 1629 | 1629 |
| 1630 } // namespace net | 1630 } // namespace net |
| OLD | NEW |