OLD | NEW |
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 30 matching lines...) Expand all Loading... |
41 String effectiveDirective; | 41 String effectiveDirective; |
42 String originalPolicy; | 42 String originalPolicy; |
43 String sourceFile; | 43 String sourceFile; |
44 int lineNumber; | 44 int lineNumber; |
45 int columnNumber; | 45 int columnNumber; |
46 int statusCode; | 46 int statusCode; |
47 }; | 47 }; |
48 | 48 |
49 class SecurityPolicyViolationEvent FINAL : public Event { | 49 class SecurityPolicyViolationEvent FINAL : public Event { |
50 public: | 50 public: |
51 static PassRefPtr<SecurityPolicyViolationEvent> create() | 51 static PassRefPtrWillBeRawPtr<SecurityPolicyViolationEvent> create() |
52 { | 52 { |
53 return adoptRef(new SecurityPolicyViolationEvent()); | 53 return adoptRefWillBeRefCountedGarbageCollected(new SecurityPolicyViolat
ionEvent()); |
54 } | 54 } |
55 | 55 |
56 static PassRefPtr<SecurityPolicyViolationEvent> create(const AtomicString& t
ype, const SecurityPolicyViolationEventInit& initializer) | 56 static PassRefPtrWillBeRawPtr<SecurityPolicyViolationEvent> create(const Ato
micString& type, const SecurityPolicyViolationEventInit& initializer) |
57 { | 57 { |
58 return adoptRef(new SecurityPolicyViolationEvent(type, initializer)); | 58 return adoptRefWillBeRefCountedGarbageCollected(new SecurityPolicyViolat
ionEvent(type, initializer)); |
59 } | 59 } |
60 | 60 |
61 const String& documentURI() const { return m_documentURI; } | 61 const String& documentURI() const { return m_documentURI; } |
62 const String& referrer() const { return m_referrer; } | 62 const String& referrer() const { return m_referrer; } |
63 const String& blockedURI() const { return m_blockedURI; } | 63 const String& blockedURI() const { return m_blockedURI; } |
64 const String& violatedDirective() const { return m_violatedDirective; } | 64 const String& violatedDirective() const { return m_violatedDirective; } |
65 const String& effectiveDirective() const { return m_effectiveDirective; } | 65 const String& effectiveDirective() const { return m_effectiveDirective; } |
66 const String& originalPolicy() const { return m_originalPolicy; } | 66 const String& originalPolicy() const { return m_originalPolicy; } |
67 const String& sourceFile() const { return m_sourceFile; } | 67 const String& sourceFile() const { return m_sourceFile; } |
68 int lineNumber() const { return m_lineNumber; } | 68 int lineNumber() const { return m_lineNumber; } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 String m_originalPolicy; | 103 String m_originalPolicy; |
104 String m_sourceFile; | 104 String m_sourceFile; |
105 int m_lineNumber; | 105 int m_lineNumber; |
106 int m_columnNumber; | 106 int m_columnNumber; |
107 int m_statusCode; | 107 int m_statusCode; |
108 }; | 108 }; |
109 | 109 |
110 } // namespace WebCore | 110 } // namespace WebCore |
111 | 111 |
112 #endif // SecurityPolicyViolationEvent_h | 112 #endif // SecurityPolicyViolationEvent_h |
OLD | NEW |