| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 26 matching lines...) Expand all Loading... |
| 37 #include "platform/SharedBuffer.h" | 37 #include "platform/SharedBuffer.h" |
| 38 #include "platform/mhtml/ArchiveResource.h" | 38 #include "platform/mhtml/ArchiveResource.h" |
| 39 #include "platform/mhtml/MHTMLParser.h" | 39 #include "platform/mhtml/MHTMLParser.h" |
| 40 #include "platform/text/QuotedPrintable.h" | 40 #include "platform/text/QuotedPrintable.h" |
| 41 #include "platform/weborigin/SchemeRegistry.h" | 41 #include "platform/weborigin/SchemeRegistry.h" |
| 42 #include "wtf/CryptographicallyRandomNumber.h" | 42 #include "wtf/CryptographicallyRandomNumber.h" |
| 43 #include "wtf/DateMath.h" | 43 #include "wtf/DateMath.h" |
| 44 #include "wtf/text/Base64.h" | 44 #include "wtf/text/Base64.h" |
| 45 #include "wtf/text/StringBuilder.h" | 45 #include "wtf/text/StringBuilder.h" |
| 46 | 46 |
| 47 namespace WebCore { | 47 namespace blink { |
| 48 | 48 |
| 49 const char* const quotedPrintable = "quoted-printable"; | 49 const char* const quotedPrintable = "quoted-printable"; |
| 50 const char* const base64 = "base64"; | 50 const char* const base64 = "base64"; |
| 51 const char* const binary = "binary"; | 51 const char* const binary = "binary"; |
| 52 | 52 |
| 53 static String generateRandomBoundary() | 53 static String generateRandomBoundary() |
| 54 { | 54 { |
| 55 // Trying to generate random boundaries similar to IE/UnMHT (ex: ----=_NextP
art_000_001B_01CC157B.96F808A0). | 55 // Trying to generate random boundaries similar to IE/UnMHT (ex: ----=_NextP
art_000_001B_01CC157B.96F808A0). |
| 56 const size_t randomValuesLength = 10; | 56 const size_t randomValuesLength = 10; |
| 57 char randomValues[randomValuesLength]; | 57 char randomValues[randomValuesLength]; |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 } | 252 } |
| 253 | 253 |
| 254 void MHTMLArchive::trace(Visitor* visitor) | 254 void MHTMLArchive::trace(Visitor* visitor) |
| 255 { | 255 { |
| 256 visitor->trace(m_mainResource); | 256 visitor->trace(m_mainResource); |
| 257 visitor->trace(m_subresources); | 257 visitor->trace(m_subresources); |
| 258 visitor->trace(m_subframeArchives); | 258 visitor->trace(m_subframeArchives); |
| 259 } | 259 } |
| 260 | 260 |
| 261 } | 261 } |
| OLD | NEW |