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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext.h

Issue 297293004: Adding cache for security origin validations in 2D/WebGL canvases (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: reorganized code Created 6 years, 7 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
« no previous file with comments | « Source/core/html/canvas/CanvasImageSource.h ('k') | Source/core/html/canvas/CanvasRenderingContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasRenderingContext.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext.h b/Source/core/html/canvas/CanvasRenderingContext.h
index 7cfe2e53bd747c5d4424230ec1333e929fb9689a..0999d334bf7e759f916b4a1b4d769258b40070da 100644
--- a/Source/core/html/canvas/CanvasRenderingContext.h
+++ b/Source/core/html/canvas/CanvasRenderingContext.h
@@ -36,6 +36,7 @@ namespace blink { class WebLayer; }
namespace WebCore {
+class CanvasImageSource;
class HTMLCanvasElement;
class KURL;
class WebGLObject;
@@ -64,11 +65,15 @@ public:
virtual void trace(Visitor* visitor) { visitor->trace(m_canvas); }
+ bool wouldTaintOrigin(CanvasImageSource*);
+
protected:
CanvasRenderingContext(HTMLCanvasElement*);
private:
RawPtrWillBeMember<HTMLCanvasElement> m_canvas;
+ HashSet<String> m_cleanURLs;
+ HashSet<String> m_dirtyURLs;
};
} // namespace WebCore
« no previous file with comments | « Source/core/html/canvas/CanvasImageSource.h ('k') | Source/core/html/canvas/CanvasRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698