| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 RefPtr<SharedBuffer> mhtmlData = SharedBuffer::create(); | 237 RefPtr<SharedBuffer> mhtmlData = SharedBuffer::create(); |
| 238 MHTMLArchive::generateMHTMLHeader(boundary, title, mimeType, *mhtmlData); | 238 MHTMLArchive::generateMHTMLHeader(boundary, title, mimeType, *mhtmlData); |
| 239 for (const auto& resource : resources) { | 239 for (const auto& resource : resources) { |
| 240 MHTMLArchive::generateMHTMLPart( | 240 MHTMLArchive::generateMHTMLPart( |
| 241 boundary, encodingPolicy, resource, *mhtmlData); | 241 boundary, encodingPolicy, resource, *mhtmlData); |
| 242 } | 242 } |
| 243 MHTMLArchive::generateMHTMLFooter(boundary, *mhtmlData); | 243 MHTMLArchive::generateMHTMLFooter(boundary, *mhtmlData); |
| 244 return mhtmlData.release(); | 244 return mhtmlData.release(); |
| 245 } | 245 } |
| 246 | 246 |
| 247 ArchiveResource* MHTMLArchive::mainResource() const |
| 248 { |
| 249 return m_mainResource.get(); |
| 250 } |
| 251 |
| 247 #if !ENABLE(OILPAN) | 252 #if !ENABLE(OILPAN) |
| 248 void MHTMLArchive::clearAllSubframeArchives() | 253 void MHTMLArchive::clearAllSubframeArchives() |
| 249 { | 254 { |
| 250 SubFrameArchives clearedArchives; | 255 SubFrameArchives clearedArchives; |
| 251 clearAllSubframeArchivesImpl(&clearedArchives); | 256 clearAllSubframeArchivesImpl(&clearedArchives); |
| 252 } | 257 } |
| 253 | 258 |
| 254 void MHTMLArchive::clearAllSubframeArchivesImpl(SubFrameArchives* clearedArchive
s) | 259 void MHTMLArchive::clearAllSubframeArchivesImpl(SubFrameArchives* clearedArchive
s) |
| 255 { | 260 { |
| 256 for (SubFrameArchives::iterator it = m_subframeArchives.begin(); it != m_sub
frameArchives.end(); ++it) { | 261 for (SubFrameArchives::iterator it = m_subframeArchives.begin(); it != m_sub
frameArchives.end(); ++it) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 279 } | 284 } |
| 280 | 285 |
| 281 DEFINE_TRACE(MHTMLArchive) | 286 DEFINE_TRACE(MHTMLArchive) |
| 282 { | 287 { |
| 283 visitor->trace(m_mainResource); | 288 visitor->trace(m_mainResource); |
| 284 visitor->trace(m_subresources); | 289 visitor->trace(m_subresources); |
| 285 visitor->trace(m_subframeArchives); | 290 visitor->trace(m_subframeArchives); |
| 286 } | 291 } |
| 287 | 292 |
| 288 } | 293 } |
| OLD | NEW |