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: Source/core/dom/Document.h

Issue 559503002: CSP: Move policy parsing out of Document. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reworking. Created 6 years, 3 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 | « no previous file | Source/core/dom/Document.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) 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 r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 class AnimationTimeline; 64 class AnimationTimeline;
65 class AXObjectCache; 65 class AXObjectCache;
66 class Attr; 66 class Attr;
67 class CDATASection; 67 class CDATASection;
68 class CSSStyleDeclaration; 68 class CSSStyleDeclaration;
69 class CSSStyleSheet; 69 class CSSStyleSheet;
70 class CanvasRenderingContext2D; 70 class CanvasRenderingContext2D;
71 class Chrome; 71 class Chrome;
72 class Comment; 72 class Comment;
73 class ConsoleMessage; 73 class ConsoleMessage;
74 class ContentSecurityPolicyResponseHeaders;
75 class ContextFeatures; 74 class ContextFeatures;
76 class CustomElementMicrotaskRunQueue; 75 class CustomElementMicrotaskRunQueue;
77 class CustomElementRegistrationContext; 76 class CustomElementRegistrationContext;
78 class DOMImplementation; 77 class DOMImplementation;
79 class DocumentFragment; 78 class DocumentFragment;
80 class DocumentLifecycleNotifier; 79 class DocumentLifecycleNotifier;
81 class DocumentLoader; 80 class DocumentLoader;
82 class DocumentMarkerController; 81 class DocumentMarkerController;
83 class DocumentNameCollection; 82 class DocumentNameCollection;
84 class DocumentParser; 83 class DocumentParser;
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 const Vector<AnnotatedRegionValue>& annotatedRegions() const; 873 const Vector<AnnotatedRegionValue>& annotatedRegions() const;
875 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&); 874 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&);
876 875
877 virtual void removeAllEventListeners() OVERRIDE FINAL; 876 virtual void removeAllEventListeners() OVERRIDE FINAL;
878 877
879 const SVGDocumentExtensions* svgExtensions(); 878 const SVGDocumentExtensions* svgExtensions();
880 SVGDocumentExtensions& accessSVGExtensions(); 879 SVGDocumentExtensions& accessSVGExtensions();
881 880
882 void initSecurityContext(); 881 void initSecurityContext();
883 void initSecurityContext(const DocumentInit&); 882 void initSecurityContext(const DocumentInit&);
884 void initContentSecurityPolicy(const ContentSecurityPolicyResponseHeaders&); 883 void initContentSecurityPolicy(PassRefPtr<ContentSecurityPolicy> = nullptr);
885 884
886 bool allowInlineEventHandlers(Node*, EventListener*, const String& contextUR L, const WTF::OrdinalNumber& contextLine); 885 bool allowInlineEventHandlers(Node*, EventListener*, const String& contextUR L, const WTF::OrdinalNumber& contextLine);
887 bool allowExecutingScripts(Node*); 886 bool allowExecutingScripts(Node*);
888 887
889 void statePopped(PassRefPtr<SerializedScriptValue>); 888 void statePopped(PassRefPtr<SerializedScriptValue>);
890 889
891 enum LoadEventProgress { 890 enum LoadEventProgress {
892 LoadEventNotRun, 891 LoadEventNotRun,
893 LoadEventInProgress, 892 LoadEventInProgress,
894 LoadEventCompleted, 893 LoadEventCompleted,
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
1413 Node* eventTargetNodeForDocument(Document*); 1412 Node* eventTargetNodeForDocument(Document*);
1414 1413
1415 } // namespace blink 1414 } // namespace blink
1416 1415
1417 #ifndef NDEBUG 1416 #ifndef NDEBUG
1418 // Outside the WebCore namespace for ease of invocation from gdb. 1417 // Outside the WebCore namespace for ease of invocation from gdb.
1419 void showLiveDocumentInstances(); 1418 void showLiveDocumentInstances();
1420 #endif 1419 #endif
1421 1420
1422 #endif // Document_h 1421 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698