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

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

Issue 133133006: Update Event classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/core/events/ResourceProgressEvent.h ('k') | Source/core/events/TextEvent.h » ('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 29 matching lines...) Expand all
40 String blockedURI; 40 String blockedURI;
41 String violatedDirective; 41 String violatedDirective;
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 : public Event { 50 class SecurityPolicyViolationEvent FINAL : public Event {
51 public: 51 public:
52 static PassRefPtr<SecurityPolicyViolationEvent> create() 52 static PassRefPtr<SecurityPolicyViolationEvent> create()
53 { 53 {
54 return adoptRef(new SecurityPolicyViolationEvent()); 54 return adoptRef(new SecurityPolicyViolationEvent());
55 } 55 }
56 56
57 static PassRefPtr<SecurityPolicyViolationEvent> create(const AtomicString& t ype, const SecurityPolicyViolationEventInit& initializer) 57 static PassRefPtr<SecurityPolicyViolationEvent> create(const AtomicString& t ype, const SecurityPolicyViolationEventInit& initializer)
58 { 58 {
59 return adoptRef(new SecurityPolicyViolationEvent(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; }
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::Secur ityPolicyViolationEvent; } 73 virtual const AtomicString& interfaceName() const OVERRIDE { return EventNam es::SecurityPolicyViolationEvent; }
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
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
OLDNEW
« no previous file with comments | « Source/core/events/ResourceProgressEvent.h ('k') | Source/core/events/TextEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698