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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2640983005: Inline Document::allowExecutingScripts logic (Closed)
Patch Set: yukishiino Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 SVGDocumentExtensions& accessSVGExtensions(); 1021 SVGDocumentExtensions& accessSVGExtensions();
1022 1022
1023 void initContentSecurityPolicy(ContentSecurityPolicy* = nullptr); 1023 void initContentSecurityPolicy(ContentSecurityPolicy* = nullptr);
1024 1024
1025 bool isSecureTransitionTo(const KURL&) const; 1025 bool isSecureTransitionTo(const KURL&) const;
1026 1026
1027 bool allowInlineEventHandler(Node*, 1027 bool allowInlineEventHandler(Node*,
1028 EventListener*, 1028 EventListener*,
1029 const String& contextURL, 1029 const String& contextURL,
1030 const WTF::OrdinalNumber& contextLine); 1030 const WTF::OrdinalNumber& contextLine);
1031 bool allowExecutingScripts(Node*);
1032 1031
1033 void enforceSandboxFlags(SandboxFlags mask) override; 1032 void enforceSandboxFlags(SandboxFlags mask) override;
1034 1033
1035 void statePopped(PassRefPtr<SerializedScriptValue>); 1034 void statePopped(PassRefPtr<SerializedScriptValue>);
1036 1035
1037 enum LoadEventProgress { 1036 enum LoadEventProgress {
1038 LoadEventNotRun, 1037 LoadEventNotRun,
1039 LoadEventInProgress, 1038 LoadEventInProgress,
1040 LoadEventCompleted, 1039 LoadEventCompleted,
1041 BeforeUnloadEventInProgress, 1040 BeforeUnloadEventInProgress,
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1724 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1726 1725
1727 } // namespace blink 1726 } // namespace blink
1728 1727
1729 #ifndef NDEBUG 1728 #ifndef NDEBUG
1730 // Outside the WebCore namespace for ease of invocation from gdb. 1729 // Outside the WebCore namespace for ease of invocation from gdb.
1731 CORE_EXPORT void showLiveDocumentInstances(); 1730 CORE_EXPORT void showLiveDocumentInstances();
1732 #endif 1731 #endif
1733 1732
1734 #endif // Document_h 1733 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698