Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(757)

Unified Diff: third_party/WebKit/Source/core/dom/PendingScript.h

Issue 2023683002: Tidy PendingScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove prefinalizer Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/PendingScript.h
diff --git a/third_party/WebKit/Source/core/dom/PendingScript.h b/third_party/WebKit/Source/core/dom/PendingScript.h
index 0293c83161d00249177eb2a20bd5fb399aaca0bf..25abb4186100c8839511c0f07a0c111103354d5b 100644
--- a/third_party/WebKit/Source/core/dom/PendingScript.h
+++ b/third_party/WebKit/Source/core/dom/PendingScript.h
@@ -31,6 +31,7 @@
#include "core/fetch/ResourceOwner.h"
#include "core/fetch/ScriptResource.h"
#include "platform/heap/Handle.h"
+#include "wtf/Noncopyable.h"
#include "wtf/text/TextPosition.h"
namespace blink {
@@ -46,13 +47,11 @@ class ScriptSourceCode;
// lifetime in order to guarantee that the data buffer will not be purged.
class CORE_EXPORT PendingScript final : public GarbageCollectedFinalized<PendingScript>, public ResourceOwner<ScriptResource> {
USING_GARBAGE_COLLECTED_MIXIN(PendingScript);
- USING_PRE_FINALIZER(PendingScript, dispose);
+ WTF_MAKE_NONCOPYABLE(PendingScript);
public:
static PendingScript* create(Element*, ScriptResource*);
~PendingScript() override;
- PendingScript& operator=(const PendingScript&);
-
TextPosition startingPosition() const { return m_startingPosition; }
void setStartingPosition(const TextPosition& position) { m_startingPosition = position; }
void markParserBlockingLoadStartTime();

Powered by Google App Engine
This is Rietveld 408576698