Oilpan: fix build after r202625.
[chromium-blink-merge.git] / third_party / WebKit / Source / core / fetch / FetchUtils.h
blob6c6f5083d0a717b63b64e2fa774a4e7429bbdebf
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
3 // found in the LICENSE file.
5 #ifndef FetchUtils_h
6 #define FetchUtils_h
8 #include "core/CoreExport.h"
9 #include "wtf/Allocator.h"
10 #include "wtf/Forward.h"
12 namespace blink {
14 class HTTPHeaderMap;
16 class CORE_EXPORT FetchUtils {
17 STATIC_ONLY(FetchUtils);
18 public:
19 static bool isSimpleMethod(const String& method);
20 static bool isSimpleHeader(const AtomicString& name, const AtomicString& value);
21 static bool isSimpleRequest(const String& method, const HTTPHeaderMap&);
22 static bool isForbiddenMethod(const String& method);
23 static bool isUsefulMethod(const String& method) { return !isForbiddenMethod(method); }
24 static bool isForbiddenHeaderName(const String& name);
25 static bool isForbiddenResponseHeaderName(const String& name);
26 static bool isSimpleOrForbiddenRequest(const String& method, const HTTPHeaderMap&);
27 static AtomicString normalizeMethod(const AtomicString& method);
30 } // namespace blink
32 #endif