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

Side by Side Diff: Source/core/loader/archive/MHTMLParser.cpp

Issue 17569013: Remove unused includes from core/inspector, core/loader and core/page (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased Created 7 years, 5 months 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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "core/loader/archive/MHTMLParser.h" 32 #include "core/loader/archive/MHTMLParser.h"
33 33
34 #include "core/loader/archive/MHTMLArchive.h" 34 #include "core/loader/archive/MHTMLArchive.h"
35 #include "core/platform/MIMETypeRegistry.h" 35 #include "core/platform/MIMETypeRegistry.h"
36 #include "core/platform/network/MIMEHeader.h" 36 #include "core/platform/network/MIMEHeader.h"
37 #include "core/platform/text/QuotedPrintable.h" 37 #include "core/platform/text/QuotedPrintable.h"
38 #include <wtf/HashMap.h> 38 #include "wtf/text/Base64.h"
39 #include <wtf/NotFound.h>
40 #include <wtf/text/Base64.h>
41 39
42 namespace WebCore { 40 namespace WebCore {
43 41
44 static bool skipLinesUntilBoundaryFound(SharedBufferChunkReader& lineReader, con st String& boundary) 42 static bool skipLinesUntilBoundaryFound(SharedBufferChunkReader& lineReader, con st String& boundary)
45 { 43 {
46 String line; 44 String line;
47 while (!(line = lineReader.nextChunkAsUTF8StringWithLatin1Fallback()).isNull ()) { 45 while (!(line = lineReader.nextChunkAsUTF8StringWithLatin1Fallback()).isNull ()) {
48 if (line == boundary) 46 if (line == boundary)
49 return true; 47 return true;
50 } 48 }
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 { 232 {
235 return m_resources.size(); 233 return m_resources.size();
236 } 234 }
237 235
238 ArchiveResource* MHTMLParser::subResourceAt(size_t index) const 236 ArchiveResource* MHTMLParser::subResourceAt(size_t index) const
239 { 237 {
240 return m_resources[index].get(); 238 return m_resources[index].get();
241 } 239 }
242 240
243 } 241 }
OLDNEW
« no previous file with comments | « Source/core/loader/archive/ArchiveResourceCollection.h ('k') | Source/core/loader/cache/CachedCSSStyleSheet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698