Commit 7babd547 authored by Charlie Hu's avatar Charlie Hu Committed by Commit Bot

Rename feature_policy_helper to policy_helper

Because feature_policy_helper now contains document_policy related
helper functions as well, rename the file to a more general name:
policy_helper.

Change-Id: I8a6c7d2343ff8ff780e64bef52c8b41d38414022
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2144040
Commit-Queue: Charlie Hu <chenleihu@google.com>
Reviewed-by: default avatarPhilip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#759408}
parent bd7a7bec
......@@ -9,7 +9,7 @@ from make_runtime_features_utilities import origin_trials
class FeaturePolicyFeatureWriter(json5_generator.Writer):
file_basename = 'feature_policy_helper'
file_basename = 'policy_helper'
def __init__(self, json5_file_path, output_dir):
super(FeaturePolicyFeatureWriter, self).__init__(
......
......@@ -3,7 +3,7 @@
{{source_files_for_generated_file(template_file, input_files)}}
#include "third_party/blink/renderer/core/feature_policy/feature_policy_helper.h"
#include "third_party/blink/renderer/core/feature_policy/policy_helper.h"
#include "third_party/blink/public/mojom/feature_policy/document_policy_feature.mojom-blink.h"
#include "third_party/blink/public/mojom/feature_policy/feature_policy.mojom-blink.h"
......
......@@ -824,16 +824,16 @@ blink_python_runner("make_core_generated_css_primitive_value_unit_trie") {
}
blink_python_runner("make_core_generated_feature_policy_helper") {
script = "../build/scripts/make_feature_policy_helper.py"
script = "../build/scripts/make_policy_helper.py"
inputs = scripts_for_json5_files + [
"../build/scripts/make_feature_policy_helper.py",
"../build/scripts/make_policy_helper.py",
"./feature_policy/feature_policy_features.json5",
"./feature_policy/document_policy_features.json5",
"../platform/runtime_enabled_features.json5",
"../build/scripts/templates/feature_policy_helper.cc.tmpl",
"../build/scripts/templates/policy_helper.cc.tmpl",
]
outputs = [ "$blink_core_output_dir/feature_policy/feature_policy_helper.cc" ]
outputs = [ "$blink_core_output_dir/feature_policy/policy_helper.cc" ]
args = [
rebase_path("../platform/runtime_enabled_features.json5", root_build_dir),
......
......@@ -11,12 +11,12 @@ blink_core_sources("feature_policy") {
"dom_document_policy.h",
"dom_feature_policy.cc",
"dom_feature_policy.h",
"feature_policy_helper.h",
"feature_policy_parser.cc",
"feature_policy_parser.h",
"feature_policy_parser_delegate.h",
"iframe_policy.h",
"layout_animations_policy.cc",
"layout_animations_policy.h",
"policy_helper.h",
]
}
......@@ -8,7 +8,7 @@
#include "third_party/blink/public/common/feature_policy/document_policy.h"
#include "third_party/blink/public/common/feature_policy/document_policy_features.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/feature_policy/feature_policy_helper.h"
#include "third_party/blink/renderer/core/feature_policy/policy_helper.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
namespace blink {
......
......@@ -10,7 +10,7 @@
#include "base/memory/scoped_refptr.h"
#include "third_party/blink/public/common/feature_policy/feature_policy.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/feature_policy/feature_policy_helper.h"
#include "third_party/blink/renderer/core/feature_policy/policy_helper.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
#include "third_party/blink/renderer/platform/wtf/text/string_hash.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FEATURE_POLICY_FEATURE_POLICY_HELPER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_FEATURE_POLICY_FEATURE_POLICY_HELPER_H_
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FEATURE_POLICY_POLICY_HELPER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_FEATURE_POLICY_POLICY_HELPER_H_
#include "third_party/blink/public/common/feature_policy/feature_policy.h"
#include "third_party/blink/public/mojom/feature_policy/document_policy_feature.mojom-blink-forward.h"
......@@ -48,4 +48,4 @@ bool DisabledByOriginTrial(mojom::blink::DocumentPolicyFeature,
FeatureContext*);
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_FEATURE_POLICY_FEATURE_POLICY_HELPER_H_
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_FEATURE_POLICY_POLICY_HELPER_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