Commit 89910d75 authored by Peter Kasting's avatar Peter Kasting Committed by Commit Bot

Finish cleaning up references to Blink origin_policy implementation.

https://chromium-review.googlesource.com/c/chromium/src/+/2079258
deleted third_party/blink/common/origin_policy, but not the public API.
Additionally, various OWNERS files were left pointing at a nonexistent
file.  AFAICT the new canonical home is services/network/origin_policy,
so point to that.

Bug: none
Change-Id: I2f27b9a63083e92c708590955849122fef9ffe00
No-Presubmit: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2144106Reviewed-by: default avatarMike West <mkwst@chromium.org>
Reviewed-by: default avatarDomenic Denicola <domenic@chromium.org>
Commit-Queue: Domenic Denicola <domenic@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758865}
parent 9764a001
file://third_party/blink/common/origin_policy/OWNERS file://services/network/origin_policy/OWNERS
file://third_party/blink/common/origin_policy/OWNERS file://services/network/origin_policy/OWNERS
# COMPONENT: Blink>SecurityFeature # COMPONENT: Blink>SecurityFeature
...@@ -130,7 +130,6 @@ source_set("headers") { ...@@ -130,7 +130,6 @@ source_set("headers") {
"notifications/notification_resources.h", "notifications/notification_resources.h",
"notifications/platform_notification_data.h", "notifications/platform_notification_data.h",
"oom_intervention/oom_intervention_types.h", "oom_intervention/oom_intervention_types.h",
"origin_policy/origin_policy.h",
"origin_trials/origin_trial_policy.h", "origin_trials/origin_trial_policy.h",
"origin_trials/trial_token.h", "origin_trials/trial_token.h",
"origin_trials/trial_token_validator.h", "origin_trials/trial_token_validator.h",
......
file://third_party/blink/common/origin_policy/OWNERS
// 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_COMMON_ORIGIN_POLICY_ORIGIN_POLICY_H_
#define THIRD_PARTY_BLINK_PUBLIC_COMMON_ORIGIN_POLICY_ORIGIN_POLICY_H_
#include <memory>
#include <set>
#include <string>
#include <vector>
#include "base/strings/string_piece.h"
#include "third_party/blink/public/common/common_export.h"
#include "url/origin.h"
namespace blink {
class OriginPolicyParser;
class BLINK_COMMON_EXPORT OriginPolicy {
public:
~OriginPolicy();
// Create & parse the manifest.
static std::unique_ptr<OriginPolicy> From(base::StringPiece);
struct CSP {
std::string policy;
bool report_only;
};
const std::vector<CSP>& GetContentSecurityPolicies() const { return csp_; }
const std::vector<std::string>& GetFeaturePolicies() const {
return features_;
}
const std::set<url::Origin>& GetFirstPartySet() const {
return first_party_set_;
}
private:
friend class OriginPolicyParser;
OriginPolicy();
std::vector<CSP> csp_;
std::vector<std::string> features_;
std::set<url::Origin> first_party_set_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_PUBLIC_COMMON_ORIGIN_POLICY_ORIGIN_POLICY_H_
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include "base/time/default_tick_clock.h" #include "base/time/default_tick_clock.h"
#include "services/network/public/cpp/features.h" #include "services/network/public/cpp/features.h"
#include "third_party/blink/public/common/features.h" #include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/origin_policy/origin_policy.h"
#include "third_party/blink/public/mojom/commit_result/commit_result.mojom-blink.h" #include "third_party/blink/public/mojom/commit_result/commit_result.mojom-blink.h"
#include "third_party/blink/public/platform/modules/service_worker/web_service_worker_network_provider.h" #include "third_party/blink/public/platform/modules/service_worker/web_service_worker_network_provider.h"
#include "third_party/blink/public/platform/web_url_request.h" #include "third_party/blink/public/platform/web_url_request.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