| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 } | 220 } |
| 221 | 221 |
| 222 void MHTMLArchive::generateMHTMLFooter( | 222 void MHTMLArchive::generateMHTMLFooter( |
| 223 const String& boundary, | 223 const String& boundary, |
| 224 SharedBuffer& outputBuffer) | 224 SharedBuffer& outputBuffer) |
| 225 { | 225 { |
| 226 CString asciiString = String("--" + boundary + "--\r\n").utf8(); | 226 CString asciiString = String("--" + boundary + "--\r\n").utf8(); |
| 227 outputBuffer.append(asciiString.data(), asciiString.length()); | 227 outputBuffer.append(asciiString.data(), asciiString.length()); |
| 228 } | 228 } |
| 229 | 229 |
| 230 ArchiveResource* MHTMLArchive::mainResource() const | |
| 231 { | |
| 232 return m_mainResource.get(); | |
| 233 } | |
| 234 | |
| 235 #if !ENABLE(OILPAN) | 230 #if !ENABLE(OILPAN) |
| 236 void MHTMLArchive::clearAllSubframeArchives() | 231 void MHTMLArchive::clearAllSubframeArchives() |
| 237 { | 232 { |
| 238 SubFrameArchives clearedArchives; | 233 SubFrameArchives clearedArchives; |
| 239 clearAllSubframeArchivesImpl(&clearedArchives); | 234 clearAllSubframeArchivesImpl(&clearedArchives); |
| 240 } | 235 } |
| 241 | 236 |
| 242 void MHTMLArchive::clearAllSubframeArchivesImpl(SubFrameArchives* clearedArchive
s) | 237 void MHTMLArchive::clearAllSubframeArchivesImpl(SubFrameArchives* clearedArchive
s) |
| 243 { | 238 { |
| 244 for (SubFrameArchives::iterator it = m_subframeArchives.begin(); it != m_sub
frameArchives.end(); ++it) { | 239 for (SubFrameArchives::iterator it = m_subframeArchives.begin(); it != m_sub
frameArchives.end(); ++it) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 267 } | 262 } |
| 268 | 263 |
| 269 DEFINE_TRACE(MHTMLArchive) | 264 DEFINE_TRACE(MHTMLArchive) |
| 270 { | 265 { |
| 271 visitor->trace(m_mainResource); | 266 visitor->trace(m_mainResource); |
| 272 visitor->trace(m_subresources); | 267 visitor->trace(m_subresources); |
| 273 visitor->trace(m_subframeArchives); | 268 visitor->trace(m_subframeArchives); |
| 274 } | 269 } |
| 275 | 270 |
| 276 } | 271 } |
| OLD | NEW |