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

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

Issue 213363006: Oilpan: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
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 30 matching lines...) Expand all
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698