Commit 98b22b72 authored by Johannes Henkel's avatar Johannes Henkel Committed by Commit Bot

Move ResourceRequestBlockedReason into its own header.

As suggested in
https://chromium-review.googlesource.com/c/chromium/src/+/1035091
since we'll need to add this to content/browser/DEPS and the
WebURLError class isnt' a good fit for this.

Bug: 838291
Change-Id: I95491371a70fa4d765328b25d89f0a69149cc071
Reviewed-on: https://chromium-review.googlesource.com/1060111Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Reviewed-by: default avatarPavel Feldman <pfeldman@chromium.org>
Commit-Queue: Johannes Henkel <johannes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558861}
parent b0e7d0c0
// Copyright 2018 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 THIRD_PARTY_BLINK_PUBLIC_PLATFORM_RESOURCE_REQUEST_BLOCKED_REASON_H_
#define THIRD_PARTY_BLINK_PUBLIC_PLATFORM_RESOURCE_REQUEST_BLOCKED_REASON_H_
namespace blink {
// If updating this enum, also update DevTools protocol usages.
// Contact devtools owners for help.
enum class ResourceRequestBlockedReason {
kOther,
kCSP,
kMixedContent,
kOrigin,
kInspector,
kSubresourceFilter,
kContentType,
};
} // namespace blink
#endif
......@@ -37,19 +37,6 @@
#include "third_party/blink/public/platform/web_url.h"
namespace blink {
// NOTE: If updating this enum, also update
// BuildResourceRequestReason in inspector_network_agent.cc and
// BlockedReasonEnum in browser_protocol.pdl and
// Network.NetworkRequestNode in NetworkDataGridNode.js.
enum class ResourceRequestBlockedReason {
kOther,
kCSP,
kMixedContent,
kOrigin,
kInspector,
kSubresourceFilter,
kContentType,
};
// TODO(yhirano): Change this to a class.
struct WebURLError {
......
......@@ -38,6 +38,7 @@
#include "base/memory/ptr_util.h"
#include "base/optional.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/resource_request_blocked_reason.h"
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/public/platform/web_cors.h"
#include "third_party/blink/public/platform/web_http_header_visitor.h"
......
......@@ -36,6 +36,7 @@
#include "services/network/public/mojom/request_context_frame_type.mojom-shared.h"
#include "third_party/blink/public/platform/modules/fetch/fetch_api_request.mojom-shared.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/resource_request_blocked_reason.h"
#include "third_party/blink/public/platform/web_application_cache_host.h"
#include "third_party/blink/public/platform/web_url_loader.h"
#include "third_party/blink/public/platform/web_url_request.h"
......
......@@ -28,6 +28,7 @@
#include "net/base/net_errors.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/resource_request_blocked_reason.h"
#include "third_party/blink/public/platform/web_string.h"
#include "third_party/blink/public/platform/web_url.h"
#include "third_party/blink/public/platform/web_url_error.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment