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

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

Issue 2508033004: Reduce unnecessary usage of TextCaseSensitivity::TextCaseInsensitive. (Closed)
Patch Set: Created 4 years, 1 month 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 Base64, 53 Base64,
54 EightBit, 54 EightBit,
55 SevenBit, 55 SevenBit,
56 Binary, 56 Binary,
57 Unknown 57 Unknown
58 }; 58 };
59 59
60 static MIMEHeader* parseHeader(SharedBufferChunkReader* crLFLineReader); 60 static MIMEHeader* parseHeader(SharedBufferChunkReader* crLFLineReader);
61 61
62 bool isMultipart() const { 62 bool isMultipart() const {
63 return m_contentType.startsWith("multipart/", TextCaseInsensitive); 63 return m_contentType.startsWith("multipart/", TextCaseASCIIInsensitive);
64 } 64 }
65 65
66 String contentType() const { return m_contentType; } 66 String contentType() const { return m_contentType; }
67 String charset() const { return m_charset; } 67 String charset() const { return m_charset; }
68 Encoding contentTransferEncoding() const { return m_contentTransferEncoding; } 68 Encoding contentTransferEncoding() const { return m_contentTransferEncoding; }
69 String contentLocation() const { return m_contentLocation; } 69 String contentLocation() const { return m_contentLocation; }
70 String contentID() const { return m_contentID; } 70 String contentID() const { return m_contentID; }
71 71
72 // Multi-part type and boundaries are only valid for multipart MIME headers. 72 // Multi-part type and boundaries are only valid for multipart MIME headers.
73 String multiPartType() const { return m_multipartType; } 73 String multiPartType() const { return m_multipartType; }
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 if (!contentID.startsWith('<') || !contentID.endsWith('>')) 379 if (!contentID.startsWith('<') || !contentID.endsWith('>'))
380 return KURL(); 380 return KURL();
381 381
382 StringBuilder uriBuilder; 382 StringBuilder uriBuilder;
383 uriBuilder.append("cid:"); 383 uriBuilder.append("cid:");
384 uriBuilder.append(contentID, 1, contentID.length() - 2); 384 uriBuilder.append(contentID, 1, contentID.length() - 2);
385 return KURL(KURL(), uriBuilder.toString()); 385 return KURL(KURL(), uriBuilder.toString());
386 } 386 }
387 387
388 } // namespace blink 388 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698