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

Side by Side Diff: third_party/WebKit/Source/core/fetch/FetchUtils.h

Issue 1364993003: Add FetchUtils::normalizeHeaderValue( ) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef FetchUtils_h 5 #ifndef FetchUtils_h
6 #define FetchUtils_h 6 #define FetchUtils_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class HTTPHeaderMap; 14 class HTTPHeaderMap;
15 15
16 class CORE_EXPORT FetchUtils { 16 class CORE_EXPORT FetchUtils {
17 STATIC_ONLY(FetchUtils); 17 STATIC_ONLY(FetchUtils);
18 public: 18 public:
19 static bool isSimpleMethod(const String& method); 19 static bool isSimpleMethod(const String& method);
20 static bool isSimpleHeader(const AtomicString& name, const AtomicString& val ue); 20 static bool isSimpleHeader(const AtomicString& name, const AtomicString& val ue);
21 static bool isSimpleRequest(const String& method, const HTTPHeaderMap&); 21 static bool isSimpleRequest(const String& method, const HTTPHeaderMap&);
22 static bool isForbiddenMethod(const String& method); 22 static bool isForbiddenMethod(const String& method);
23 static bool isUsefulMethod(const String& method) { return !isForbiddenMethod (method); } 23 static bool isUsefulMethod(const String& method) { return !isForbiddenMethod (method); }
24 static bool isForbiddenHeaderName(const String& name); 24 static bool isForbiddenHeaderName(const String& name);
25 static bool isForbiddenResponseHeaderName(const String& name); 25 static bool isForbiddenResponseHeaderName(const String& name);
26 static bool isSimpleOrForbiddenRequest(const String& method, const HTTPHeade rMap&); 26 static bool isSimpleOrForbiddenRequest(const String& method, const HTTPHeade rMap&);
27 static AtomicString normalizeMethod(const AtomicString& method); 27 static AtomicString normalizeMethod(const AtomicString& method);
28 static String normalizeHeaderValue(const String& value);
28 }; 29 };
29 30
30 } // namespace blink 31 } // namespace blink
31 32
32 #endif 33 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/fetch/FetchUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698