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

Unified Diff: third_party/WebKit/Source/core/fetch/FetchUtils.h

Issue 2584423002: Loading: move core/fetch to platform/loader/fetch (Closed)
Patch Set: another try Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/FetchUtils.h
diff --git a/third_party/WebKit/Source/core/fetch/FetchUtils.h b/third_party/WebKit/Source/core/fetch/FetchUtils.h
deleted file mode 100644
index 07c272c6597565f9a19d3bba980250413cc420fc..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/fetch/FetchUtils.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// 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 "core/CoreExport.h"
-#include "wtf/Allocator.h"
-#include "wtf/Forward.h"
-
-namespace blink {
-
-class HTTPHeaderMap;
-
-class CORE_EXPORT FetchUtils {
- STATIC_ONLY(FetchUtils);
-
- public:
- static bool isSimpleMethod(const String& method);
- static bool isSimpleHeader(const AtomicString& name,
- const AtomicString& value);
- static bool isSimpleContentType(const AtomicString& mediaType);
- 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&);
- static AtomicString normalizeMethod(const AtomicString& method);
- static String normalizeHeaderValue(const String& value);
-
- // https://fetch.spec.whatwg.org/#ok-status aka a successful 2xx status
- // code, https://tools.ietf.org/html/rfc7231#section-6.3 . We opt to use
- // the Fetch term in naming the predicate.
- static bool isOkStatus(int status) { return status >= 200 && status < 300; }
-};
-
-} // namespace blink
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698