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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; } |
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 { return eventNames().inte
rfaceForSecurityPolicyViolationEvent; } | 73 virtual const AtomicString& interfaceName() const { return EventNames::Secur
ityPolicyViolationEvent; } |
74 | 74 |
75 private: | 75 private: |
76 SecurityPolicyViolationEvent() | 76 SecurityPolicyViolationEvent() |
77 { | 77 { |
78 ScriptWrappable::init(this); | 78 ScriptWrappable::init(this); |
79 } | 79 } |
80 | 80 |
81 SecurityPolicyViolationEvent(const AtomicString& type, const SecurityPolicyV
iolationEventInit& initializer) | 81 SecurityPolicyViolationEvent(const AtomicString& type, const SecurityPolicyV
iolationEventInit& initializer) |
82 : Event(type, initializer) | 82 : Event(type, initializer) |
83 , m_documentURI(initializer.documentURI) | 83 , m_documentURI(initializer.documentURI) |
(...skipping 18 matching lines...) Expand all Loading... |
102 String m_originalPolicy; | 102 String m_originalPolicy; |
103 String m_sourceFile; | 103 String m_sourceFile; |
104 int m_lineNumber; | 104 int m_lineNumber; |
105 int m_columnNumber; | 105 int m_columnNumber; |
106 int m_statusCode; | 106 int m_statusCode; |
107 }; | 107 }; |
108 | 108 |
109 } // namespace WebCore | 109 } // namespace WebCore |
110 | 110 |
111 #endif // SecurityPolicyViolationEvent_h | 111 #endif // SecurityPolicyViolationEvent_h |
OLD | NEW |