OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 { | 298 { |
299 // FIXME: getSecurityInfo is misnamed. | 299 // FIXME: getSecurityInfo is misnamed. |
300 return m_private->m_resourceResponse->getSecurityInfo(); | 300 return m_private->m_resourceResponse->getSecurityInfo(); |
301 } | 301 } |
302 | 302 |
303 void WebURLResponse::setSecurityInfo(const WebCString& securityInfo) | 303 void WebURLResponse::setSecurityInfo(const WebCString& securityInfo) |
304 { | 304 { |
305 m_private->m_resourceResponse->setSecurityInfo(securityInfo); | 305 m_private->m_resourceResponse->setSecurityInfo(securityInfo); |
306 } | 306 } |
307 | 307 |
| 308 void WebURLResponse::setHasMajorCertificateErrors(bool value) |
| 309 { |
| 310 m_private->m_resourceResponse->setHasMajorCertificateErrors(value); |
| 311 } |
| 312 |
308 WebURLResponse::SecurityStyle WebURLResponse::securityStyle() const | 313 WebURLResponse::SecurityStyle WebURLResponse::securityStyle() const |
309 { | 314 { |
310 return static_cast<SecurityStyle>(m_private->m_resourceResponse->securitySty
le()); | 315 return static_cast<SecurityStyle>(m_private->m_resourceResponse->securitySty
le()); |
311 } | 316 } |
312 | 317 |
313 void WebURLResponse::setSecurityStyle(SecurityStyle securityStyle) | 318 void WebURLResponse::setSecurityStyle(SecurityStyle securityStyle) |
314 { | 319 { |
315 m_private->m_resourceResponse->setSecurityStyle(static_cast<ResourceResponse
::SecurityStyle>(securityStyle)); | 320 m_private->m_resourceResponse->setSecurityStyle(static_cast<ResourceResponse
::SecurityStyle>(securityStyle)); |
316 } | 321 } |
317 | 322 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 // Subclasses may call this directly so a self-assignment check is needed | 489 // Subclasses may call this directly so a self-assignment check is needed |
485 // here as well as in the public assign method. | 490 // here as well as in the public assign method. |
486 if (m_private == p) | 491 if (m_private == p) |
487 return; | 492 return; |
488 if (m_private) | 493 if (m_private) |
489 m_private->dispose(); | 494 m_private->dispose(); |
490 m_private = p; | 495 m_private = p; |
491 } | 496 } |
492 | 497 |
493 } // namespace blink | 498 } // namespace blink |
OLD | NEW |