Commit 5794352d authored by Stuart Langley's avatar Stuart Langley Committed by Commit Bot

Replace WTF_MAKE_NONCOPYABLE with DISALLOW_COPY_AND_ASSIGN in Source/core/frame.

This changes is for files in the path //t_p/WebKit/Source/core/frame/.

Added the include for base/macros.h where needed and moved the macro to the
end of the class as per the code guidelines enforced by lint.

This CL introduces no logic changes.

Bug: 565932
Change-Id: I8753284e767ccaceabdbd3a67c935c1bcde71a04
Reviewed-on: https://chromium-review.googlesource.com/806736Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Stuart Langley <slangley@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521626}
parent 022cebe8
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
#define DOMTimerCoordinator_h #define DOMTimerCoordinator_h
#include <memory> #include <memory>
#include "base/macros.h"
#include "platform/heap/Handle.h" #include "platform/heap/Handle.h"
#include "platform/wtf/Noncopyable.h"
#include "platform/wtf/Time.h" #include "platform/wtf/Time.h"
namespace blink { namespace blink {
...@@ -24,7 +25,6 @@ class WebTaskRunner; ...@@ -24,7 +25,6 @@ class WebTaskRunner;
// which is used as a signal for throttling repetitive timers. // which is used as a signal for throttling repetitive timers.
class DOMTimerCoordinator { class DOMTimerCoordinator {
DISALLOW_NEW(); DISALLOW_NEW();
WTF_MAKE_NONCOPYABLE(DOMTimerCoordinator);
public: public:
explicit DOMTimerCoordinator(scoped_refptr<WebTaskRunner>); explicit DOMTimerCoordinator(scoped_refptr<WebTaskRunner>);
...@@ -67,6 +67,8 @@ class DOMTimerCoordinator { ...@@ -67,6 +67,8 @@ class DOMTimerCoordinator {
int circular_sequential_id_; int circular_sequential_id_;
int timer_nesting_level_; int timer_nesting_level_;
scoped_refptr<WebTaskRunner> timer_task_runner_; scoped_refptr<WebTaskRunner> timer_task_runner_;
DISALLOW_COPY_AND_ASSIGN(DOMTimerCoordinator);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
#ifndef Deprecation_h #ifndef Deprecation_h
#define Deprecation_h #define Deprecation_h
#include "base/macros.h"
#include "core/CSSPropertyNames.h" #include "core/CSSPropertyNames.h"
#include "core/CoreExport.h" #include "core/CoreExport.h"
#include "core/frame/UseCounter.h" #include "core/frame/UseCounter.h"
#include "platform/wtf/BitVector.h" #include "platform/wtf/BitVector.h"
#include "platform/wtf/Noncopyable.h"
namespace blink { namespace blink {
...@@ -18,7 +18,6 @@ enum class FeaturePolicyFeature; ...@@ -18,7 +18,6 @@ enum class FeaturePolicyFeature;
class CORE_EXPORT Deprecation { class CORE_EXPORT Deprecation {
DISALLOW_NEW(); DISALLOW_NEW();
WTF_MAKE_NONCOPYABLE(Deprecation);
public: public:
Deprecation(); Deprecation();
...@@ -68,6 +67,8 @@ class CORE_EXPORT Deprecation { ...@@ -68,6 +67,8 @@ class CORE_EXPORT Deprecation {
BitVector css_property_deprecation_bits_; BitVector css_property_deprecation_bits_;
unsigned mute_count_; unsigned mute_count_;
DISALLOW_COPY_AND_ASSIGN(Deprecation);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,13 +5,11 @@ ...@@ -5,13 +5,11 @@
#ifndef FrameLifecycle_h #ifndef FrameLifecycle_h
#define FrameLifecycle_h #define FrameLifecycle_h
#include "platform/wtf/Noncopyable.h" #include "base/macros.h"
namespace blink { namespace blink {
class FrameLifecycle { class FrameLifecycle {
WTF_MAKE_NONCOPYABLE(FrameLifecycle);
public: public:
enum State { enum State {
kAttached, kAttached,
...@@ -26,6 +24,8 @@ class FrameLifecycle { ...@@ -26,6 +24,8 @@ class FrameLifecycle {
private: private:
State state_; State state_;
DISALLOW_COPY_AND_ASSIGN(FrameLifecycle);
}; };
} // namespace blink } // namespace blink
......
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <memory> #include <memory>
#include <string> #include <string>
#include "base/macros.h"
#include "core/exported/WebViewImpl.h" #include "core/exported/WebViewImpl.h"
#include "core/frame/Settings.h" #include "core/frame/Settings.h"
#include "platform/WebTaskRunner.h" #include "platform/WebTaskRunner.h"
...@@ -210,8 +212,6 @@ class TestWebViewClient : public WebViewClient { ...@@ -210,8 +212,6 @@ class TestWebViewClient : public WebViewClient {
// Convenience class for handling the lifetime of a WebView and its associated // Convenience class for handling the lifetime of a WebView and its associated
// mainframe in tests. // mainframe in tests.
class WebViewHelper { class WebViewHelper {
WTF_MAKE_NONCOPYABLE(WebViewHelper);
public: public:
WebViewHelper(); WebViewHelper();
~WebViewHelper(); ~WebViewHelper();
...@@ -277,6 +277,8 @@ class WebViewHelper { ...@@ -277,6 +277,8 @@ class WebViewHelper {
// Non-null if the WebViewHelper owns the TestWebViewClient. // Non-null if the WebViewHelper owns the TestWebViewClient.
std::unique_ptr<TestWebViewClient> owned_test_web_view_client_; std::unique_ptr<TestWebViewClient> owned_test_web_view_client_;
TestWebViewClient* test_web_view_client_; TestWebViewClient* test_web_view_client_;
DISALLOW_COPY_AND_ASSIGN(WebViewHelper);
}; };
// Minimal implementation of WebFrameClient needed for unit tests that load // Minimal implementation of WebFrameClient needed for unit tests that load
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
#ifndef FrameViewAutoSizeInfo_h #ifndef FrameViewAutoSizeInfo_h
#define FrameViewAutoSizeInfo_h #define FrameViewAutoSizeInfo_h
#include "base/macros.h"
#include "base/memory/scoped_refptr.h" #include "base/memory/scoped_refptr.h"
#include "platform/geometry/IntSize.h" #include "platform/geometry/IntSize.h"
#include "platform/heap/Handle.h" #include "platform/heap/Handle.h"
#include "platform/wtf/Allocator.h" #include "platform/wtf/Allocator.h"
#include "platform/wtf/Noncopyable.h"
namespace blink { namespace blink {
...@@ -17,8 +17,6 @@ class LocalFrameView; ...@@ -17,8 +17,6 @@ class LocalFrameView;
class FrameViewAutoSizeInfo final class FrameViewAutoSizeInfo final
: public GarbageCollected<FrameViewAutoSizeInfo> { : public GarbageCollected<FrameViewAutoSizeInfo> {
WTF_MAKE_NONCOPYABLE(FrameViewAutoSizeInfo);
public: public:
static FrameViewAutoSizeInfo* Create(LocalFrameView* frame_view) { static FrameViewAutoSizeInfo* Create(LocalFrameView* frame_view) {
return new FrameViewAutoSizeInfo(frame_view); return new FrameViewAutoSizeInfo(frame_view);
...@@ -42,6 +40,8 @@ class FrameViewAutoSizeInfo final ...@@ -42,6 +40,8 @@ class FrameViewAutoSizeInfo final
bool in_auto_size_; bool in_auto_size_;
// True if autosize has been run since m_shouldAutoSize was set. // True if autosize has been run since m_shouldAutoSize was set.
bool did_run_autosize_; bool did_run_autosize_;
DISALLOW_COPY_AND_ASSIGN(FrameViewAutoSizeInfo);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
#ifndef Intervention_h #ifndef Intervention_h
#define Intervention_h #define Intervention_h
#include "base/macros.h"
#include "core/CoreExport.h" #include "core/CoreExport.h"
#include "platform/wtf/Allocator.h" #include "platform/wtf/Allocator.h"
#include "platform/wtf/Noncopyable.h"
#include "platform/wtf/text/WTFString.h" #include "platform/wtf/text/WTFString.h"
namespace blink { namespace blink {
...@@ -16,15 +16,16 @@ class LocalFrame; ...@@ -16,15 +16,16 @@ class LocalFrame;
class CORE_EXPORT Intervention { class CORE_EXPORT Intervention {
DISALLOW_NEW(); DISALLOW_NEW();
WTF_MAKE_NONCOPYABLE(Intervention);
public: public:
Intervention() {} Intervention() = default;
~Intervention() {} ~Intervention() = default;
// Generates a intervention report, to be routed to the Reporting API and any // Generates a intervention report, to be routed to the Reporting API and any
// ReportingObservers. Also sends the intervention message to the console. // ReportingObservers. Also sends the intervention message to the console.
static void GenerateReport(const LocalFrame*, const String& message); static void GenerateReport(const LocalFrame*, const String& message);
DISALLOW_COPY_AND_ASSIGN(Intervention);
}; };
} // namespace blink } // namespace blink
......
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
#define LocalFrame_h #define LocalFrame_h
#include <memory> #include <memory>
#include "base/macros.h"
#include "core/CoreExport.h" #include "core/CoreExport.h"
#include "core/dom/UserGestureIndicator.h" #include "core/dom/UserGestureIndicator.h"
#include "core/dom/WeakIdentifierMap.h" #include "core/dom/WeakIdentifierMap.h"
...@@ -421,7 +423,6 @@ DEFINE_TYPE_CASTS(LocalFrame, ...@@ -421,7 +423,6 @@ DEFINE_TYPE_CASTS(LocalFrame,
DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame); DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame);
class FrameNavigationDisabler { class FrameNavigationDisabler {
WTF_MAKE_NONCOPYABLE(FrameNavigationDisabler);
STACK_ALLOCATED(); STACK_ALLOCATED();
public: public:
...@@ -430,6 +431,8 @@ class FrameNavigationDisabler { ...@@ -430,6 +431,8 @@ class FrameNavigationDisabler {
private: private:
Member<LocalFrame> frame_; Member<LocalFrame> frame_;
DISALLOW_COPY_AND_ASSIGN(FrameNavigationDisabler);
}; };
// A helper class for attributing cost inside a scope to a LocalFrame, with // A helper class for attributing cost inside a scope to a LocalFrame, with
...@@ -451,7 +454,6 @@ class FrameNavigationDisabler { ...@@ -451,7 +454,6 @@ class FrameNavigationDisabler {
// should be taken to ensure that it has an efficient fast path (for the common // should be taken to ensure that it has an efficient fast path (for the common
// case where we are not tracking this). // case where we are not tracking this).
class ScopedFrameBlamer { class ScopedFrameBlamer {
WTF_MAKE_NONCOPYABLE(ScopedFrameBlamer);
STACK_ALLOCATED(); STACK_ALLOCATED();
public: public:
...@@ -465,6 +467,8 @@ class ScopedFrameBlamer { ...@@ -465,6 +467,8 @@ class ScopedFrameBlamer {
void LeaveContext(); void LeaveContext();
Member<LocalFrame> frame_; Member<LocalFrame> frame_;
DISALLOW_COPY_AND_ASSIGN(ScopedFrameBlamer);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
#ifndef OpenedFrameTracker_h #ifndef OpenedFrameTracker_h
#define OpenedFrameTracker_h #define OpenedFrameTracker_h
#include "base/macros.h"
#include "platform/wtf/HashSet.h" #include "platform/wtf/HashSet.h"
#include "platform/wtf/Noncopyable.h"
namespace blink { namespace blink {
...@@ -16,8 +16,6 @@ class WebFrame; ...@@ -16,8 +16,6 @@ class WebFrame;
// Due to layering restrictions, we need to hide the implementation, since // Due to layering restrictions, we need to hide the implementation, since
// public/web/ cannot depend on wtf/. // public/web/ cannot depend on wtf/.
class OpenedFrameTracker { class OpenedFrameTracker {
WTF_MAKE_NONCOPYABLE(OpenedFrameTracker);
public: public:
OpenedFrameTracker(); OpenedFrameTracker();
~OpenedFrameTracker(); ~OpenedFrameTracker();
...@@ -35,6 +33,8 @@ class OpenedFrameTracker { ...@@ -35,6 +33,8 @@ class OpenedFrameTracker {
private: private:
WTF::HashSet<WebFrame*> opened_frames_; WTF::HashSet<WebFrame*> opened_frames_;
DISALLOW_COPY_AND_ASSIGN(OpenedFrameTracker);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#ifndef PerformanceMonitor_h #ifndef PerformanceMonitor_h
#define PerformanceMonitor_h #define PerformanceMonitor_h
#include "base/macros.h"
#include "core/CoreExport.h" #include "core/CoreExport.h"
#include "core/dom/Document.h" #include "core/dom/Document.h"
#include "core/frame/LocalFrame.h" #include "core/frame/LocalFrame.h"
...@@ -40,8 +41,6 @@ class SourceLocation; ...@@ -40,8 +41,6 @@ class SourceLocation;
class CORE_EXPORT PerformanceMonitor final class CORE_EXPORT PerformanceMonitor final
: public GarbageCollectedFinalized<PerformanceMonitor>, : public GarbageCollectedFinalized<PerformanceMonitor>,
public scheduler::TaskTimeObserver { public scheduler::TaskTimeObserver {
WTF_MAKE_NONCOPYABLE(PerformanceMonitor);
public: public:
enum Violation : size_t { enum Violation : size_t {
kLongTask, kLongTask,
...@@ -164,6 +163,8 @@ class CORE_EXPORT PerformanceMonitor final ...@@ -164,6 +163,8 @@ class CORE_EXPORT PerformanceMonitor final
WTF::UnsignedWithZeroKeyHashTraits<size_t>> WTF::UnsignedWithZeroKeyHashTraits<size_t>>
subscriptions_; subscriptions_;
bool bypass_long_compile_threshold_ = false; bool bypass_long_compile_threshold_ = false;
DISALLOW_COPY_AND_ASSIGN(PerformanceMonitor);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#ifndef ResizeViewportAnchor_h #ifndef ResizeViewportAnchor_h
#define ResizeViewportAnchor_h #define ResizeViewportAnchor_h
#include "base/macros.h"
#include "core/CoreExport.h" #include "core/CoreExport.h"
#include "core/page/Page.h" #include "core/page/Page.h"
#include "platform/heap/Handle.h" #include "platform/heap/Handle.h"
...@@ -22,8 +23,6 @@ class LocalFrameView; ...@@ -22,8 +23,6 @@ class LocalFrameView;
// position to be clamped). // position to be clamped).
class CORE_EXPORT ResizeViewportAnchor final class CORE_EXPORT ResizeViewportAnchor final
: public GarbageCollected<ResizeViewportAnchor> { : public GarbageCollected<ResizeViewportAnchor> {
WTF_MAKE_NONCOPYABLE(ResizeViewportAnchor);
public: public:
ResizeViewportAnchor(Page& page) : page_(page), scope_count_(0) {} ResizeViewportAnchor(Page& page) : page_(page), scope_count_(0) {}
...@@ -55,6 +54,8 @@ class CORE_EXPORT ResizeViewportAnchor final ...@@ -55,6 +54,8 @@ class CORE_EXPORT ResizeViewportAnchor final
ScrollOffset drift_; ScrollOffset drift_;
Member<Page> page_; Member<Page> page_;
int scope_count_; int scope_count_;
DISALLOW_COPY_AND_ASSIGN(ResizeViewportAnchor);
}; };
} // namespace blink } // namespace blink
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#define Settings_h #define Settings_h
#include <memory> #include <memory>
#include "base/macros.h"
#include "bindings/core/v8/V8CacheOptions.h" #include "bindings/core/v8/V8CacheOptions.h"
#include "core/CoreExport.h" #include "core/CoreExport.h"
#include "core/dom/events/AddEventListenerOptionsDefaults.h" #include "core/dom/events/AddEventListenerOptionsDefaults.h"
...@@ -52,7 +54,6 @@ ...@@ -52,7 +54,6 @@
namespace blink { namespace blink {
class CORE_EXPORT Settings { class CORE_EXPORT Settings {
WTF_MAKE_NONCOPYABLE(Settings);
USING_FAST_MALLOC(Settings); USING_FAST_MALLOC(Settings);
public: public:
...@@ -95,6 +96,8 @@ class CORE_EXPORT Settings { ...@@ -95,6 +96,8 @@ class CORE_EXPORT Settings {
bool text_autosizing_enabled_ : 1; bool text_autosizing_enabled_ : 1;
SETTINGS_MEMBER_VARIABLES SETTINGS_MEMBER_VARIABLES
DISALLOW_COPY_AND_ASSIGN(Settings);
}; };
} // namespace blink } // namespace blink
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#ifndef UseCounter_h #ifndef UseCounter_h
#define UseCounter_h #define UseCounter_h
#include "base/macros.h"
#include "core/CSSPropertyNames.h" #include "core/CSSPropertyNames.h"
#include "core/CoreExport.h" #include "core/CoreExport.h"
#include "core/css/parser/CSSParserMode.h" #include "core/css/parser/CSSParserMode.h"
...@@ -34,7 +35,6 @@ ...@@ -34,7 +35,6 @@
#include "platform/heap/HeapAllocator.h" #include "platform/heap/HeapAllocator.h"
#include "platform/wtf/BitVector.h" #include "platform/wtf/BitVector.h"
#include "platform/wtf/Forward.h" #include "platform/wtf/Forward.h"
#include "platform/wtf/Noncopyable.h"
namespace blink { namespace blink {
...@@ -63,7 +63,6 @@ class StyleSheetContents; ...@@ -63,7 +63,6 @@ class StyleSheetContents;
// Changes on UseCounter are observable by UseCounter::Observer. // Changes on UseCounter are observable by UseCounter::Observer.
class CORE_EXPORT UseCounter { class CORE_EXPORT UseCounter {
DISALLOW_NEW(); DISALLOW_NEW();
WTF_MAKE_NONCOPYABLE(UseCounter);
public: public:
enum Context { enum Context {
...@@ -175,6 +174,8 @@ class CORE_EXPORT UseCounter { ...@@ -175,6 +174,8 @@ class CORE_EXPORT UseCounter {
BitVector animated_css_recorded_; BitVector animated_css_recorded_;
HeapHashSet<Member<Observer>> observers_; HeapHashSet<Member<Observer>> observers_;
DISALLOW_COPY_AND_ASSIGN(UseCounter);
}; };
} // namespace blink } // namespace blink
......
...@@ -92,6 +92,7 @@ ...@@ -92,6 +92,7 @@
#include <set> #include <set>
#include <utility> #include <utility>
#include "base/macros.h"
#include "bindings/core/v8/BindingSecurity.h" #include "bindings/core/v8/BindingSecurity.h"
#include "bindings/core/v8/ExceptionState.h" #include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptController.h" #include "bindings/core/v8/ScriptController.h"
...@@ -261,13 +262,11 @@ HeapVector<ScriptSourceCode> CreateSourcesVector( ...@@ -261,13 +262,11 @@ HeapVector<ScriptSourceCode> CreateSourcesVector(
// Simple class to override some of PrintContext behavior. Some of the methods // Simple class to override some of PrintContext behavior. Some of the methods
// made virtual so that they can be overridden by ChromePluginPrintContext. // made virtual so that they can be overridden by ChromePluginPrintContext.
class ChromePrintContext : public PrintContext { class ChromePrintContext : public PrintContext {
WTF_MAKE_NONCOPYABLE(ChromePrintContext);
public: public:
explicit ChromePrintContext(LocalFrame* frame) explicit ChromePrintContext(LocalFrame* frame)
: PrintContext(frame), printed_page_width_(0) {} : PrintContext(frame), printed_page_width_(0) {}
~ChromePrintContext() override {} ~ChromePrintContext() override = default;
virtual void BeginPrintMode(float width, float height) { virtual void BeginPrintMode(float width, float height) {
DCHECK(!printed_page_width_); DCHECK(!printed_page_width_);
...@@ -416,6 +415,8 @@ class ChromePrintContext : public PrintContext { ...@@ -416,6 +415,8 @@ class ChromePrintContext : public PrintContext {
// Set when printing. // Set when printing.
float printed_page_width_; float printed_page_width_;
float printed_page_height_; float printed_page_height_;
DISALLOW_COPY_AND_ASSIGN(ChromePrintContext);
}; };
// Simple class to override some of PrintContext behavior. This is used when // Simple class to override some of PrintContext behavior. This is used when
......
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
#ifndef WebViewFrameWidget_h #ifndef WebViewFrameWidget_h
#define WebViewFrameWidget_h #define WebViewFrameWidget_h
#include "base/macros.h"
#include "base/memory/scoped_refptr.h" #include "base/memory/scoped_refptr.h"
#include "core/CoreExport.h" #include "core/CoreExport.h"
#include "core/frame/WebFrameWidgetBase.h" #include "core/frame/WebFrameWidgetBase.h"
#include "core/frame/WebLocalFrameImpl.h" #include "core/frame/WebLocalFrameImpl.h"
#include "platform/heap/Handle.h" #include "platform/heap/Handle.h"
#include "platform/heap/SelfKeepAlive.h" #include "platform/heap/SelfKeepAlive.h"
#include "platform/wtf/Noncopyable.h"
namespace blink { namespace blink {
...@@ -34,8 +34,6 @@ class WebWidgetClient; ...@@ -34,8 +34,6 @@ class WebWidgetClient;
// A more detailed writeup of this transition can be read at // A more detailed writeup of this transition can be read at
// https://goo.gl/7yVrnb. // https://goo.gl/7yVrnb.
class CORE_EXPORT WebViewFrameWidget : public WebFrameWidgetBase { class CORE_EXPORT WebViewFrameWidget : public WebFrameWidgetBase {
WTF_MAKE_NONCOPYABLE(WebViewFrameWidget);
public: public:
explicit WebViewFrameWidget(WebWidgetClient&, explicit WebViewFrameWidget(WebWidgetClient&,
WebViewImpl&, WebViewImpl&,
...@@ -111,6 +109,8 @@ class CORE_EXPORT WebViewFrameWidget : public WebFrameWidgetBase { ...@@ -111,6 +109,8 @@ class CORE_EXPORT WebViewFrameWidget : public WebFrameWidgetBase {
Member<WebLocalFrameImpl> main_frame_; Member<WebLocalFrameImpl> main_frame_;
SelfKeepAlive<WebViewFrameWidget> self_keep_alive_; SelfKeepAlive<WebViewFrameWidget> self_keep_alive_;
DISALLOW_COPY_AND_ASSIGN(WebViewFrameWidget);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#ifndef CSPDirectiveList_h #ifndef CSPDirectiveList_h
#define CSPDirectiveList_h #define CSPDirectiveList_h
#include "base/macros.h"
#include "core/frame/csp/ContentSecurityPolicy.h" #include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/frame/csp/MediaListDirective.h" #include "core/frame/csp/MediaListDirective.h"
#include "core/frame/csp/SourceListDirective.h" #include "core/frame/csp/SourceListDirective.h"
...@@ -28,8 +29,6 @@ typedef HeapVector<Member<SourceListDirective>> SourceListDirectiveVector; ...@@ -28,8 +29,6 @@ typedef HeapVector<Member<SourceListDirective>> SourceListDirectiveVector;
class CORE_EXPORT CSPDirectiveList class CORE_EXPORT CSPDirectiveList
: public GarbageCollectedFinalized<CSPDirectiveList> { : public GarbageCollectedFinalized<CSPDirectiveList> {
WTF_MAKE_NONCOPYABLE(CSPDirectiveList);
public: public:
static CSPDirectiveList* Create(ContentSecurityPolicy*, static CSPDirectiveList* Create(ContentSecurityPolicy*,
const UChar* begin, const UChar* begin,
...@@ -360,6 +359,8 @@ class CORE_EXPORT CSPDirectiveList ...@@ -360,6 +359,8 @@ class CORE_EXPORT CSPDirectiveList
bool use_reporting_api_; bool use_reporting_api_;
String eval_disabled_error_message_; String eval_disabled_error_message_;
DISALLOW_COPY_AND_ASSIGN(CSPDirectiveList);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#ifndef SourceListDirective_h #ifndef SourceListDirective_h
#define SourceListDirective_h #define SourceListDirective_h
#include "base/macros.h"
#include "core/CoreExport.h" #include "core/CoreExport.h"
#include "core/frame/csp/CSPDirective.h" #include "core/frame/csp/CSPDirective.h"
#include "core/frame/csp/CSPSource.h" #include "core/frame/csp/CSPSource.h"
...@@ -21,8 +22,6 @@ class ContentSecurityPolicy; ...@@ -21,8 +22,6 @@ class ContentSecurityPolicy;
class KURL; class KURL;
class CORE_EXPORT SourceListDirective final : public CSPDirective { class CORE_EXPORT SourceListDirective final : public CSPDirective {
WTF_MAKE_NONCOPYABLE(SourceListDirective);
public: public:
SourceListDirective(const String& name, SourceListDirective(const String& name,
const String& value, const String& value,
...@@ -137,6 +136,8 @@ class CORE_EXPORT SourceListDirective final : public CSPDirective { ...@@ -137,6 +136,8 @@ class CORE_EXPORT SourceListDirective final : public CSPDirective {
HashSet<String> nonces_; HashSet<String> nonces_;
HashSet<CSPHashValue> hashes_; HashSet<CSPHashValue> hashes_;
uint8_t hash_algorithms_used_; uint8_t hash_algorithms_used_;
DISALLOW_COPY_AND_ASSIGN(SourceListDirective);
}; };
} // 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