Chromium Code Reviews| Index: Source/core/fetch/FetchUtils.h |
| diff --git a/Source/core/fetch/FetchUtils.h b/Source/core/fetch/FetchUtils.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4f7a0f0b16cafca8c39d7274ca76c1116aee2b50 |
| --- /dev/null |
| +++ b/Source/core/fetch/FetchUtils.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef FetchUtils_h |
| +#define FetchUtils_h |
| + |
| +#include "wtf/text/WTFString.h" |
|
tkent
2014/08/07 03:39:25
Use wtf/Forward.h instead.
yhirano
2014/08/07 05:20:01
Done.
|
| + |
| +namespace blink { |
| + |
| +class HTTPHeaderMap; |
| + |
| +class FetchUtils { |
| +public: |
| + static bool isSimpleMethod(const String& method); |
| + static bool isSimpleHeader(const AtomicString& name, const AtomicString& value); |
| + static bool isSimpleRequest(const String& method, const HTTPHeaderMap&); |
| + static bool isForbiddenMethod(const String& method); |
| + static bool isUsefulMethod(const String& method) { return !isForbiddenMethod(method); } |
| + static bool isForbiddenHeaderName(const String& name); |
| + static bool isForbiddenResponseHeaderName(const String& name); |
| + static bool isSimpleOrForbiddenRequest(const String& method, const HTTPHeaderMap&); |
| +}; |
|
tkent
2014/08/07 03:39:25
Please add
private:
FetchUtils();
or FetchUt
yhirano
2014/08/07 05:20:01
Done.
|
| + |
| +} // namespace blink |
| + |
| +#endif |