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

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

Issue 14323004: Make Frame's ScriptController an OwnPtr and remove the #include (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix Created 7 years, 8 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
« no previous file with comments | « Source/core/html/parser/HTMLParserOptions.cpp ('k') | Source/core/inspector/InspectorAgent.cpp » ('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 20 matching lines...) Expand all
31 #include "Document.h" 31 #include "Document.h"
32 #include "DocumentLoader.h" 32 #include "DocumentLoader.h"
33 #include "FormData.h" 33 #include "FormData.h"
34 #include "Frame.h" 34 #include "Frame.h"
35 #include "FrameLoader.h" 35 #include "FrameLoader.h"
36 #include "FrameLoaderClient.h" 36 #include "FrameLoaderClient.h"
37 #include "HTMLParserIdioms.h" 37 #include "HTMLParserIdioms.h"
38 #include "InspectorValues.h" 38 #include "InspectorValues.h"
39 #include "PingLoader.h" 39 #include "PingLoader.h"
40 #include "SecurityOrigin.h" 40 #include "SecurityOrigin.h"
41 #include <wtf/text/StringBuilder.h>
41 42
42 namespace WebCore { 43 namespace WebCore {
43 44
44 XSSAuditorDelegate::XSSAuditorDelegate(Document* document) 45 XSSAuditorDelegate::XSSAuditorDelegate(Document* document)
45 : m_document(document) 46 : m_document(document)
46 , m_didSendNotifications(false) 47 , m_didSendNotifications(false)
47 { 48 {
48 ASSERT(isMainThread()); 49 ASSERT(isMainThread());
49 ASSERT(m_document); 50 ASSERT(m_document);
50 } 51 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 111
111 if (!m_reportURL.isEmpty()) 112 if (!m_reportURL.isEmpty())
112 PingLoader::sendViolationReport(m_document->frame(), m_reportURL, ge nerateViolationReport()); 113 PingLoader::sendViolationReport(m_document->frame(), m_reportURL, ge nerateViolationReport());
113 } 114 }
114 115
115 if (xssInfo.m_didBlockEntirePage) 116 if (xssInfo.m_didBlockEntirePage)
116 m_document->frame()->navigationScheduler()->scheduleLocationChange(m_doc ument->securityOrigin(), SecurityOrigin::urlWithUniqueSecurityOrigin(), String() ); 117 m_document->frame()->navigationScheduler()->scheduleLocationChange(m_doc ument->securityOrigin(), SecurityOrigin::urlWithUniqueSecurityOrigin(), String() );
117 } 118 }
118 119
119 } // namespace WebCore 120 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLParserOptions.cpp ('k') | Source/core/inspector/InspectorAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698