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 22 matching lines...) Expand all Loading... |
33 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" |
34 #include "wtf/text/TextPosition.h" | 34 #include "wtf/text/TextPosition.h" |
35 #include "wtf/text/WTFString.h" | 35 #include "wtf/text/WTFString.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class Document; | 39 class Document; |
40 class FormData; | 40 class FormData; |
41 | 41 |
42 class XSSInfo { | 42 class XSSInfo { |
| 43 WTF_MAKE_FAST_ALLOCATED(XSSInfo); |
| 44 WTF_MAKE_NONCOPYABLE(XSSInfo); |
43 public: | 45 public: |
44 static PassOwnPtr<XSSInfo> create(const String& originalURL, bool didBlockEn
tirePage, bool didSendXSSProtectionHeader, bool didSendCSPHeader) | 46 static PassOwnPtr<XSSInfo> create(const String& originalURL, bool didBlockEn
tirePage, bool didSendXSSProtectionHeader, bool didSendCSPHeader) |
45 { | 47 { |
46 return adoptPtr(new XSSInfo(originalURL, didBlockEntirePage, didSendXSSP
rotectionHeader, didSendCSPHeader)); | 48 return adoptPtr(new XSSInfo(originalURL, didBlockEntirePage, didSendXSSP
rotectionHeader, didSendCSPHeader)); |
47 } | 49 } |
48 | 50 |
49 String buildConsoleError() const; | 51 String buildConsoleError() const; |
50 bool isSafeToSendToAnotherThread() const; | 52 bool isSafeToSendToAnotherThread() const; |
51 | 53 |
52 String m_originalURL; | 54 String m_originalURL; |
(...skipping 27 matching lines...) Expand all Loading... |
80 RawPtrWillBeMember<Document> m_document; | 82 RawPtrWillBeMember<Document> m_document; |
81 bool m_didSendNotifications; | 83 bool m_didSendNotifications; |
82 KURL m_reportURL; | 84 KURL m_reportURL; |
83 }; | 85 }; |
84 | 86 |
85 typedef Vector<OwnPtr<XSSInfo>> XSSInfoStream; | 87 typedef Vector<OwnPtr<XSSInfo>> XSSInfoStream; |
86 | 88 |
87 } | 89 } |
88 | 90 |
89 #endif | 91 #endif |
OLD | NEW |