Commit 12e2b45a authored by HyunJi Kim's avatar HyunJi Kim Committed by Commit Bot

replace DISALLOW_COPY_AND_ASSIGN macros in blink/../execution_context

Bug: 1010217
Change-Id: Ic247386d4ba64c14273d959180f2c29b47f4158b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2344325Reviewed-by: default avatarXiaocheng Hu <xiaochengh@chromium.org>
Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Commit-Queue: Hyunjune Kim <hyunjune.kim@samsung.com>
Cr-Commit-Position: refs/heads/master@{#796662}
parent 2861fc2e
...@@ -375,6 +375,8 @@ class CORE_EXPORT ExecutionContext : public Supplementable<ExecutionContext>, ...@@ -375,6 +375,8 @@ class CORE_EXPORT ExecutionContext : public Supplementable<ExecutionContext>,
protected: protected:
explicit ExecutionContext(v8::Isolate* isolate, Agent*); explicit ExecutionContext(v8::Isolate* isolate, Agent*);
ExecutionContext(const ExecutionContext&) = delete;
ExecutionContext& operator=(const ExecutionContext&) = delete;
~ExecutionContext() override; ~ExecutionContext() override;
// Resetting the Agent is only necessary for a special case related to the // Resetting the Agent is only necessary for a special case related to the
...@@ -443,8 +445,6 @@ class CORE_EXPORT ExecutionContext : public Supplementable<ExecutionContext>, ...@@ -443,8 +445,6 @@ class CORE_EXPORT ExecutionContext : public Supplementable<ExecutionContext>,
// context as to the FeaturePolicyProposalWouldChangeBehaviour // context as to the FeaturePolicyProposalWouldChangeBehaviour
// histogram, in order not to overcount. // histogram, in order not to overcount.
mutable Vector<bool> feature_policy_behaviour_change_counted_; mutable Vector<bool> feature_policy_behaviour_change_counted_;
DISALLOW_COPY_AND_ASSIGN(ExecutionContext);
}; };
} // namespace blink } // namespace blink
......
...@@ -74,6 +74,8 @@ class CORE_EXPORT SecurityContext { ...@@ -74,6 +74,8 @@ class CORE_EXPORT SecurityContext {
public: public:
explicit SecurityContext(ExecutionContext*); explicit SecurityContext(ExecutionContext*);
SecurityContext(const SecurityContext&) = delete;
SecurityContext& operator=(const SecurityContext&) = delete;
virtual ~SecurityContext(); virtual ~SecurityContext();
void Trace(Visitor*) const; void Trace(Visitor*) const;
...@@ -184,7 +186,6 @@ class CORE_EXPORT SecurityContext { ...@@ -184,7 +186,6 @@ class CORE_EXPORT SecurityContext {
InsecureNavigationsSet insecure_navigations_to_upgrade_; InsecureNavigationsSet insecure_navigations_to_upgrade_;
bool require_safe_types_ = false; bool require_safe_types_ = false;
SecureContextMode secure_context_mode_ = SecureContextMode::kInsecureContext; SecureContextMode secure_context_mode_ = SecureContextMode::kInsecureContext;
DISALLOW_COPY_AND_ASSIGN(SecurityContext);
}; };
} // namespace blink } // namespace blink
......
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