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

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

Issue 2184973002: Add UMA to count the usage of sendBeacon with non-simple Content-Type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
index c2ff2e4cb4232146e469fe166830bdce8aeb1a35..b9f99c110239bb3e7ea5b2b109f506497e5a3036 100644
--- a/third_party/WebKit/Source/core/fetch/FetchUtils.h
+++ b/third_party/WebKit/Source/core/fetch/FetchUtils.h
@@ -18,6 +18,7 @@ class CORE_EXPORT 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); }

Powered by Google App Engine
This is Rietveld 408576698