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

Side by Side Diff: Source/core/html/parser/XSSAuditor.cpp

Issue 64643009: Remove duplicated headers from core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Adam Barth. All Rights Reserved. 2 * Copyright (C) 2011 Adam Barth. All Rights Reserved.
3 * Copyright (C) 2011 Daniel Bates (dbates@intudata.com). 3 * Copyright (C) 2011 Daniel Bates (dbates@intudata.com).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 25 matching lines...) Expand all
36 #include "core/frame/Frame.h" 36 #include "core/frame/Frame.h"
37 #include "core/html/HTMLParamElement.h" 37 #include "core/html/HTMLParamElement.h"
38 #include "core/html/parser/HTMLDocumentParser.h" 38 #include "core/html/parser/HTMLDocumentParser.h"
39 #include "core/html/parser/HTMLParserIdioms.h" 39 #include "core/html/parser/HTMLParserIdioms.h"
40 #include "core/html/parser/XSSAuditorDelegate.h" 40 #include "core/html/parser/XSSAuditorDelegate.h"
41 #include "core/loader/DocumentLoader.h" 41 #include "core/loader/DocumentLoader.h"
42 #include "core/page/Settings.h" 42 #include "core/page/Settings.h"
43 #include "platform/JSONValues.h" 43 #include "platform/JSONValues.h"
44 #include "platform/network/FormData.h" 44 #include "platform/network/FormData.h"
45 #include "platform/text/DecodeEscapeSequences.h" 45 #include "platform/text/DecodeEscapeSequences.h"
46 #include "platform/weborigin/KURL.h"
47 #include "wtf/MainThread.h" 46 #include "wtf/MainThread.h"
48 #include "wtf/text/TextEncoding.h"
49 47
50 namespace WebCore { 48 namespace WebCore {
51 49
52 using namespace HTMLNames; 50 using namespace HTMLNames;
53 51
54 static bool isNonCanonicalCharacter(UChar c) 52 static bool isNonCanonicalCharacter(UChar c)
55 { 53 {
56 // We remove all non-ASCII characters, including non-printable ASCII charact ers. 54 // We remove all non-ASCII characters, including non-printable ASCII charact ers.
57 // 55 //
58 // Note, we don't remove backslashes like PHP stripslashes(), which among ot her things converts "\\0" to the \0 character. 56 // Note, we don't remove backslashes like PHP stripslashes(), which among ot her things converts "\\0" to the \0 character.
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 } 722 }
725 723
726 bool XSSAuditor::isSafeToSendToAnotherThread() const 724 bool XSSAuditor::isSafeToSendToAnotherThread() const
727 { 725 {
728 return m_documentURL.isSafeToSendToAnotherThread() 726 return m_documentURL.isSafeToSendToAnotherThread()
729 && m_decodedURL.isSafeToSendToAnotherThread() 727 && m_decodedURL.isSafeToSendToAnotherThread()
730 && m_decodedHTTPBody.isSafeToSendToAnotherThread(); 728 && m_decodedHTTPBody.isSafeToSendToAnotherThread();
731 } 729 }
732 730
733 } // namespace WebCore 731 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLViewSourceParser.cpp ('k') | Source/core/html/shadow/DateTimeEditElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698