Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp

Issue 1461193003: Revert of [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make patch applicable Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h ('k') | third_party/WebKit/Source/web/WebDevToolsAgentImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698