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

Side by Side Diff: third_party/WebKit/Source/platform/network/HTTPParsers.h

Issue 1460883003: Drop unused functions in HTTPParsers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/network/HTTPParsers.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 2 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * Copyright (C) 2011 Apple Inc. All Rights Reserved. 4 * Copyright (C) 2011 Apple Inc. All Rights Reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 { 89 {
90 } 90 }
91 }; 91 };
92 92
93 PLATFORM_EXPORT ContentDispositionType contentDispositionType(const String&); 93 PLATFORM_EXPORT ContentDispositionType contentDispositionType(const String&);
94 PLATFORM_EXPORT bool isValidHTTPHeaderValue(const String&); 94 PLATFORM_EXPORT bool isValidHTTPHeaderValue(const String&);
95 PLATFORM_EXPORT bool isValidHTTPFieldContentRFC7230(const String&); 95 PLATFORM_EXPORT bool isValidHTTPFieldContentRFC7230(const String&);
96 PLATFORM_EXPORT bool isValidHTTPToken(const String&); 96 PLATFORM_EXPORT bool isValidHTTPToken(const String&);
97 PLATFORM_EXPORT bool parseHTTPRefresh(const String& refresh, bool fromHttpEquivM eta, double& delay, String& url); 97 PLATFORM_EXPORT bool parseHTTPRefresh(const String& refresh, bool fromHttpEquivM eta, double& delay, String& url);
98 PLATFORM_EXPORT double parseDate(const String&); 98 PLATFORM_EXPORT double parseDate(const String&);
99 PLATFORM_EXPORT String filenameFromHTTPContentDisposition(const String&);
100 PLATFORM_EXPORT AtomicString extractMIMETypeFromMediaType(const AtomicString&); 99 PLATFORM_EXPORT AtomicString extractMIMETypeFromMediaType(const AtomicString&);
101 PLATFORM_EXPORT String extractCharsetFromMediaType(const String&); 100 PLATFORM_EXPORT String extractCharsetFromMediaType(const String&);
102 PLATFORM_EXPORT void findCharsetInMediaType(const String& mediaType, unsigned& c harsetPos, unsigned& charsetLen, unsigned start = 0); 101 PLATFORM_EXPORT void findCharsetInMediaType(const String& mediaType, unsigned& c harsetPos, unsigned& charsetLen, unsigned start = 0);
103 PLATFORM_EXPORT ReflectedXSSDisposition parseXSSProtectionHeader(const String& h eader, String& failureReason, unsigned& failurePosition, String& reportURL); 102 PLATFORM_EXPORT ReflectedXSSDisposition parseXSSProtectionHeader(const String& h eader, String& failureReason, unsigned& failurePosition, String& reportURL);
104 PLATFORM_EXPORT String extractReasonPhraseFromHTTPStatusLine(const String&);
105 PLATFORM_EXPORT XFrameOptionsDisposition parseXFrameOptionsHeader(const String&) ; 103 PLATFORM_EXPORT XFrameOptionsDisposition parseXFrameOptionsHeader(const String&) ;
106 PLATFORM_EXPORT CacheControlHeader parseCacheControlDirectives(const AtomicStrin g& cacheControlHeader, const AtomicString& pragmaHeader); 104 PLATFORM_EXPORT CacheControlHeader parseCacheControlDirectives(const AtomicStrin g& cacheControlHeader, const AtomicString& pragmaHeader);
107 PLATFORM_EXPORT void parseCommaDelimitedHeader(const String& headerValue, CommaD elimitedHeaderSet&); 105 PLATFORM_EXPORT void parseCommaDelimitedHeader(const String& headerValue, CommaD elimitedHeaderSet&);
108 106
109 // -1 could be set to one of the return parameters to indicate the value is not specified.
110 PLATFORM_EXPORT bool parseRange(const String&, long long& rangeOffset, long long & rangeEnd, long long& rangeSuffixLength);
111
112 PLATFORM_EXPORT ContentTypeOptionsDisposition parseContentTypeOptionsHeader(cons t String& header); 107 PLATFORM_EXPORT ContentTypeOptionsDisposition parseContentTypeOptionsHeader(cons t String& header);
113 108
114 // Parsing Complete HTTP Messages.
115 enum HTTPVersion { Unknown, HTTP_1_0, HTTP_1_1 };
116 PLATFORM_EXPORT size_t parseHTTPRequestLine(const char* data, size_t length, Str ing& failureReason, String& method, String& url, HTTPVersion&);
117 PLATFORM_EXPORT size_t parseHTTPHeader(const char* data, size_t length, String& failureReason, AtomicString& nameStr, AtomicString& valueStr);
118 PLATFORM_EXPORT size_t parseHTTPRequestBody(const char* data, size_t length, Vec tor<unsigned char>& body);
119
120 } 109 }
121 110
122 #endif 111 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/network/HTTPParsers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698