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

Side by Side Diff: Source/core/html/parser/XSSAuditorDelegate.h

Issue 1306413003: Make classes and structures in core/html fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/html/parser/XSSAuditor.h ('k') | Source/core/html/shadow/DateTimeEditElement.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 22 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « Source/core/html/parser/XSSAuditor.h ('k') | Source/core/html/shadow/DateTimeEditElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698