| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 return AtomicString("file://"); | 495 return AtomicString("file://"); |
| 496 | 496 |
| 497 StringBuilder result; | 497 StringBuilder result; |
| 498 buildRawString(result, true); | 498 buildRawString(result, true); |
| 499 return result.toAtomicString(); | 499 return result.toAtomicString(); |
| 500 } | 500 } |
| 501 | 501 |
| 502 void SecurityOrigin::buildRawString(StringBuilder& builder, bool includeSuborigi
n) const | 502 void SecurityOrigin::buildRawString(StringBuilder& builder, bool includeSuborigi
n) const |
| 503 { | 503 { |
| 504 builder.append(m_protocol); | 504 builder.append(m_protocol); |
| 505 builder.appendLiteral("://"); | 505 builder.append("://"); |
| 506 if (includeSuborigin && hasSuborigin()) { | 506 if (includeSuborigin && hasSuborigin()) { |
| 507 builder.append(m_suborigin.name()); | 507 builder.append(m_suborigin.name()); |
| 508 builder.appendLiteral("_"); | 508 builder.append("_"); |
| 509 } | 509 } |
| 510 builder.append(m_host); | 510 builder.append(m_host); |
| 511 | 511 |
| 512 if (m_port) { | 512 if (m_port) { |
| 513 builder.append(':'); | 513 builder.append(':'); |
| 514 builder.appendNumber(m_port); | 514 builder.appendNumber(m_port); |
| 515 } | 515 } |
| 516 } | 516 } |
| 517 | 517 |
| 518 PassRefPtr<SecurityOrigin> SecurityOrigin::createFromString(const String& origin
String) | 518 PassRefPtr<SecurityOrigin> SecurityOrigin::createFromString(const String& origin
String) |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 m_blockLocalAccessFromLocalOrigin = privilegeData->m_blockLocalAccessFromLoc
alOrigin; | 575 m_blockLocalAccessFromLocalOrigin = privilegeData->m_blockLocalAccessFromLoc
alOrigin; |
| 576 } | 576 } |
| 577 | 577 |
| 578 void SecurityOrigin::setUniqueOriginIsPotentiallyTrustworthy(bool isUniqueOrigin
PotentiallyTrustworthy) | 578 void SecurityOrigin::setUniqueOriginIsPotentiallyTrustworthy(bool isUniqueOrigin
PotentiallyTrustworthy) |
| 579 { | 579 { |
| 580 ASSERT(!isUniqueOriginPotentiallyTrustworthy || isUnique()); | 580 ASSERT(!isUniqueOriginPotentiallyTrustworthy || isUnique()); |
| 581 m_isUniqueOriginPotentiallyTrustworthy = isUniqueOriginPotentiallyTrustworth
y; | 581 m_isUniqueOriginPotentiallyTrustworthy = isUniqueOriginPotentiallyTrustworth
y; |
| 582 } | 582 } |
| 583 | 583 |
| 584 } // namespace blink | 584 } // namespace blink |
| OLD | NEW |