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

Unified Diff: third_party/WebKit/Source/core/html/parser/XSSAuditor.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/parser/XSSAuditor.h
diff --git a/third_party/WebKit/Source/core/html/parser/XSSAuditor.h b/third_party/WebKit/Source/core/html/parser/XSSAuditor.h
index 0ff1aa281f7f004bfddacd08ab87089b4a3a496b..88874b3327d927a7fb5d91241260fc5c9494839b 100644
--- a/third_party/WebKit/Source/core/html/parser/XSSAuditor.h
+++ b/third_party/WebKit/Source/core/html/parser/XSSAuditor.h
@@ -31,8 +31,8 @@
#include "platform/text/SuffixTree.h"
#include "platform/weborigin/KURL.h"
#include "wtf/Allocator.h"
-#include "wtf/PassOwnPtr.h"
#include "wtf/text/TextEncoding.h"
+#include <memory>
namespace blink {
@@ -63,7 +63,7 @@ public:
void init(Document*, XSSAuditorDelegate*);
void initForFragment();
- PassOwnPtr<XSSInfo> filterToken(const FilterTokenRequest&);
+ std::unique_ptr<XSSInfo> filterToken(const FilterTokenRequest&);
bool isSafeToSendToAnotherThread() const;
void setEncoding(const WTF::TextEncoding&);
@@ -129,7 +129,7 @@ private:
String m_decodedURL;
String m_decodedHTTPBody;
String m_httpBodyAsString;
- OwnPtr<SuffixTree<ASCIICodebook>> m_decodedHTTPBodySuffixTree;
+ std::unique_ptr<SuffixTree<ASCIICodebook>> m_decodedHTTPBodySuffixTree;
State m_state;
bool m_scriptTagFoundInRequest;

Powered by Google App Engine
This is Rietveld 408576698