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

Side by Side Diff: Source/core/events/SecurityPolicyViolationEvent.h

Issue 185393006: Revert "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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 String effectiveDirective; 42 String effectiveDirective;
43 String originalPolicy; 43 String originalPolicy;
44 String sourceFile; 44 String sourceFile;
45 int lineNumber; 45 int lineNumber;
46 int columnNumber; 46 int columnNumber;
47 int statusCode; 47 int statusCode;
48 }; 48 };
49 49
50 class SecurityPolicyViolationEvent FINAL : public Event { 50 class SecurityPolicyViolationEvent FINAL : public Event {
51 public: 51 public:
52 static PassRefPtrWillBeRawPtr<SecurityPolicyViolationEvent> create() 52 static PassRefPtr<SecurityPolicyViolationEvent> create()
53 { 53 {
54 return adoptRefWillBeRefCountedGarbageCollected(new SecurityPolicyViolat ionEvent()); 54 return adoptRef(new SecurityPolicyViolationEvent());
55 } 55 }
56 56
57 static PassRefPtrWillBeRawPtr<SecurityPolicyViolationEvent> create(const Ato micString& type, const SecurityPolicyViolationEventInit& initializer) 57 static PassRefPtr<SecurityPolicyViolationEvent> create(const AtomicString& t ype, const SecurityPolicyViolationEventInit& initializer)
58 { 58 {
59 return adoptRefWillBeRefCountedGarbageCollected(new SecurityPolicyViolat ionEvent(type, initializer)); 59 return adoptRef(new SecurityPolicyViolationEvent(type, initializer));
60 } 60 }
61 61
62 const String& documentURI() const { return m_documentURI; } 62 const String& documentURI() const { return m_documentURI; }
63 const String& referrer() const { return m_referrer; } 63 const String& referrer() const { return m_referrer; }
64 const String& blockedURI() const { return m_blockedURI; } 64 const String& blockedURI() const { return m_blockedURI; }
65 const String& violatedDirective() const { return m_violatedDirective; } 65 const String& violatedDirective() const { return m_violatedDirective; }
66 const String& effectiveDirective() const { return m_effectiveDirective; } 66 const String& effectiveDirective() const { return m_effectiveDirective; }
67 const String& originalPolicy() const { return m_originalPolicy; } 67 const String& originalPolicy() const { return m_originalPolicy; }
68 const String& sourceFile() const { return m_sourceFile; } 68 const String& sourceFile() const { return m_sourceFile; }
69 int lineNumber() const { return m_lineNumber; } 69 int lineNumber() const { return m_lineNumber; }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 String m_originalPolicy; 104 String m_originalPolicy;
105 String m_sourceFile; 105 String m_sourceFile;
106 int m_lineNumber; 106 int m_lineNumber;
107 int m_columnNumber; 107 int m_columnNumber;
108 int m_statusCode; 108 int m_statusCode;
109 }; 109 };
110 110
111 } // namespace WebCore 111 } // namespace WebCore
112 112
113 #endif // SecurityPolicyViolationEvent_h 113 #endif // SecurityPolicyViolationEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698