| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; } |
| 70 int columnNumber() const { return m_columnNumber; } | 70 int columnNumber() const { return m_columnNumber; } |
| 71 int statusCode() const { return m_statusCode; } | 71 int statusCode() const { return m_statusCode; } |
| 72 | 72 |
| 73 virtual const AtomicString& interfaceName() const OVERRIDE { return EventNam
es::SecurityPolicyViolationEvent; } | 73 virtual const AtomicString& interfaceName() const OVERRIDE { return EventNam
es::SecurityPolicyViolationEvent; } |
| 74 | 74 |
| 75 virtual void trace(Visitor* visitor) OVERRIDE { Event::trace(visitor); } |
| 76 |
| 75 private: | 77 private: |
| 76 SecurityPolicyViolationEvent() | 78 SecurityPolicyViolationEvent() |
| 77 { | 79 { |
| 78 ScriptWrappable::init(this); | 80 ScriptWrappable::init(this); |
| 79 } | 81 } |
| 80 | 82 |
| 81 SecurityPolicyViolationEvent(const AtomicString& type, const SecurityPolicyV
iolationEventInit& initializer) | 83 SecurityPolicyViolationEvent(const AtomicString& type, const SecurityPolicyV
iolationEventInit& initializer) |
| 82 : Event(type, initializer) | 84 : Event(type, initializer) |
| 83 , m_documentURI(initializer.documentURI) | 85 , m_documentURI(initializer.documentURI) |
| 84 , m_referrer(initializer.referrer) | 86 , m_referrer(initializer.referrer) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 102 String m_originalPolicy; | 104 String m_originalPolicy; |
| 103 String m_sourceFile; | 105 String m_sourceFile; |
| 104 int m_lineNumber; | 106 int m_lineNumber; |
| 105 int m_columnNumber; | 107 int m_columnNumber; |
| 106 int m_statusCode; | 108 int m_statusCode; |
| 107 }; | 109 }; |
| 108 | 110 |
| 109 } // namespace WebCore | 111 } // namespace WebCore |
| 110 | 112 |
| 111 #endif // SecurityPolicyViolationEvent_h | 113 #endif // SecurityPolicyViolationEvent_h |
| OLD | NEW |