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

Unified Diff: Source/core/events/SecurityPolicyViolationEvent.h

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/core/events/ResourceProgressEvent.h ('k') | Source/core/events/TextEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/SecurityPolicyViolationEvent.h
diff --git a/Source/core/events/SecurityPolicyViolationEvent.h b/Source/core/events/SecurityPolicyViolationEvent.h
index aa53c06409dbe4f4611448a127eaaeda99c60d61..4b21147c947f43ac4b0bd122006437d112e8a68b 100644
--- a/Source/core/events/SecurityPolicyViolationEvent.h
+++ b/Source/core/events/SecurityPolicyViolationEvent.h
@@ -48,14 +48,14 @@ struct SecurityPolicyViolationEventInit : public EventInit {
class SecurityPolicyViolationEvent FINAL : public Event {
public:
- static PassRefPtr<SecurityPolicyViolationEvent> create()
+ static PassRefPtrWillBeRawPtr<SecurityPolicyViolationEvent> create()
{
- return adoptRef(new SecurityPolicyViolationEvent());
+ return adoptRefWillBeRefCountedGarbageCollected(new SecurityPolicyViolationEvent());
}
- static PassRefPtr<SecurityPolicyViolationEvent> create(const AtomicString& type, const SecurityPolicyViolationEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<SecurityPolicyViolationEvent> create(const AtomicString& type, const SecurityPolicyViolationEventInit& initializer)
{
- return adoptRef(new SecurityPolicyViolationEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new SecurityPolicyViolationEvent(type, initializer));
}
const String& documentURI() const { return m_documentURI; }
« no previous file with comments | « Source/core/events/ResourceProgressEvent.h ('k') | Source/core/events/TextEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698