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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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
« no previous file with comments | « Source/core/events/ResourceProgressEvent.cpp ('k') | Source/core/events/TextEvent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12 matching lines...) Expand all
23 */ 23 */
24 24
25 #ifndef SecurityPolicyViolationEvent_h 25 #ifndef SecurityPolicyViolationEvent_h
26 #define SecurityPolicyViolationEvent_h 26 #define SecurityPolicyViolationEvent_h
27 27
28 #include "core/events/Event.h" 28 #include "core/events/Event.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 struct SecurityPolicyViolationEventInit : public EventInit { 32 struct SecurityPolicyViolationEventInit : public EventInit {
33 SecurityPolicyViolationEventInit() 33 SecurityPolicyViolationEventInit() { }
34 {
35 }
36 34
37 String documentURI; 35 String documentURI;
38 String referrer; 36 String referrer;
39 String blockedURI; 37 String blockedURI;
40 String violatedDirective; 38 String violatedDirective;
41 String effectiveDirective; 39 String effectiveDirective;
42 String originalPolicy; 40 String originalPolicy;
43 String sourceFile; 41 String sourceFile;
44 int lineNumber; 42 int lineNumber;
45 int columnNumber; 43 int columnNumber;
(...skipping 22 matching lines...) Expand all
68 const String& sourceFile() const { return m_sourceFile; } 66 const String& sourceFile() const { return m_sourceFile; }
69 int lineNumber() const { return m_lineNumber; } 67 int lineNumber() const { return m_lineNumber; }
70 int columnNumber() const { return m_columnNumber; } 68 int columnNumber() const { return m_columnNumber; }
71 int statusCode() const { return m_statusCode; } 69 int statusCode() const { return m_statusCode; }
72 70
73 virtual const AtomicString& interfaceName() const OVERRIDE { return EventNam es::SecurityPolicyViolationEvent; } 71 virtual const AtomicString& interfaceName() const OVERRIDE { return EventNam es::SecurityPolicyViolationEvent; }
74 72
75 virtual void trace(Visitor* visitor) OVERRIDE { Event::trace(visitor); } 73 virtual void trace(Visitor* visitor) OVERRIDE { Event::trace(visitor); }
76 74
77 private: 75 private:
78 SecurityPolicyViolationEvent() 76 SecurityPolicyViolationEvent() { }
79 {
80 ScriptWrappable::init(this);
81 }
82 77
83 SecurityPolicyViolationEvent(const AtomicString& type, const SecurityPolicyV iolationEventInit& initializer) 78 SecurityPolicyViolationEvent(const AtomicString& type, const SecurityPolicyV iolationEventInit& initializer)
84 : Event(type, initializer) 79 : Event(type, initializer)
85 , m_documentURI(initializer.documentURI) 80 , m_documentURI(initializer.documentURI)
86 , m_referrer(initializer.referrer) 81 , m_referrer(initializer.referrer)
87 , m_blockedURI(initializer.blockedURI) 82 , m_blockedURI(initializer.blockedURI)
88 , m_violatedDirective(initializer.violatedDirective) 83 , m_violatedDirective(initializer.violatedDirective)
89 , m_effectiveDirective(initializer.effectiveDirective) 84 , m_effectiveDirective(initializer.effectiveDirective)
90 , m_originalPolicy(initializer.originalPolicy) 85 , m_originalPolicy(initializer.originalPolicy)
91 , m_sourceFile(initializer.sourceFile) 86 , m_sourceFile(initializer.sourceFile)
92 , m_lineNumber(initializer.lineNumber) 87 , m_lineNumber(initializer.lineNumber)
93 , m_columnNumber(initializer.columnNumber) 88 , m_columnNumber(initializer.columnNumber)
94 , m_statusCode(initializer.statusCode) 89 , m_statusCode(initializer.statusCode) { }
95 {
96 ScriptWrappable::init(this);
97 }
98 90
99 String m_documentURI; 91 String m_documentURI;
100 String m_referrer; 92 String m_referrer;
101 String m_blockedURI; 93 String m_blockedURI;
102 String m_violatedDirective; 94 String m_violatedDirective;
103 String m_effectiveDirective; 95 String m_effectiveDirective;
104 String m_originalPolicy; 96 String m_originalPolicy;
105 String m_sourceFile; 97 String m_sourceFile;
106 int m_lineNumber; 98 int m_lineNumber;
107 int m_columnNumber; 99 int m_columnNumber;
108 int m_statusCode; 100 int m_statusCode;
109 }; 101 };
110 102
111 } // namespace blink 103 } // namespace blink
112 104
113 #endif // SecurityPolicyViolationEvent_h 105 #endif // SecurityPolicyViolationEvent_h
OLDNEW
« no previous file with comments | « Source/core/events/ResourceProgressEvent.cpp ('k') | Source/core/events/TextEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698