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

Unified Diff: Source/bindings/core/v8/BindingSecurity.h

Issue 1278983003: Adding allocator annotations to blink classes and structs. (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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/v8/BindingSecurity.h
diff --git a/Source/bindings/core/v8/BindingSecurity.h b/Source/bindings/core/v8/BindingSecurity.h
index 8821dcf205f595428a827dba563c3d43e3d5f6dd..d1756d03cdc95216d35ba1a8f5cf17d031a6ee7d 100644
--- a/Source/bindings/core/v8/BindingSecurity.h
+++ b/Source/bindings/core/v8/BindingSecurity.h
@@ -34,6 +34,7 @@
// FIXME: The LocalFrame include should not be necessary, clients should be including it where they use it.
#include "core/CoreExport.h"
#include "core/frame/LocalFrame.h"
+#include "wtf/Allocator.h"
#include <v8.h>
namespace blink {
@@ -47,6 +48,7 @@ enum SecurityReportingOption {
};
class BindingSecurity {
+ STATIC_ONLY(BindingSecurity);
public:
static bool shouldAllowAccessToNode(v8::Isolate*, Node*, ExceptionState&);
CORE_EXPORT static bool shouldAllowAccessToFrame(v8::Isolate*, Frame*, SecurityReportingOption = ReportSecurityError);

Powered by Google App Engine
This is Rietveld 408576698