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

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

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Addressing review comments Created 3 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
« no previous file with comments | « content/test/test_render_frame_host.cc ('k') | third_party/WebKit/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 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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 // Depending on baseURLOverride value it is possible that parent document 624 // Depending on baseURLOverride value it is possible that parent document
625 // base URL will be used instead of it. See baseURLForOverride function 625 // base URL will be used instead of it. See baseURLForOverride function
626 // for details. 626 // for details.
627 KURL CompleteURLWithOverride(const String&, 627 KURL CompleteURLWithOverride(const String&,
628 const KURL& base_url_override) const; 628 const KURL& base_url_override) const;
629 // Determines which base URL should be used given specified override. 629 // Determines which base URL should be used given specified override.
630 // If override is empty or is about:blank url and parent document exists 630 // If override is empty or is about:blank url and parent document exists
631 // base URL of parent will be returned, passed base URL override otherwise. 631 // base URL of parent will be returned, passed base URL override otherwise.
632 const KURL& BaseURLForOverride(const KURL& base_url_override) const; 632 const KURL& BaseURLForOverride(const KURL& base_url_override) const;
633 633
634 // Determines whether a new document should take on the same origin as that of
635 // the document which created it.
636 static bool ShouldInheritSecurityOriginFromOwner(const KURL&);
637
634 String UserAgent() const final; 638 String UserAgent() const final;
635 void DisableEval(const String& error_message) final; 639 void DisableEval(const String& error_message) final;
636 640
637 CSSStyleSheet& ElementSheet(); 641 CSSStyleSheet& ElementSheet();
638 642
639 virtual DocumentParser* CreateParser(); 643 virtual DocumentParser* CreateParser();
640 DocumentParser* Parser() const { return parser_.Get(); } 644 DocumentParser* Parser() const { return parser_.Get(); }
641 ScriptableDocumentParser* GetScriptableDocumentParser() const; 645 ScriptableDocumentParser* GetScriptableDocumentParser() const;
642 646
643 // FinishingPrinting denotes that the non-printing layout state is being 647 // FinishingPrinting denotes that the non-printing layout state is being
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1732 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1729 1733
1730 } // namespace blink 1734 } // namespace blink
1731 1735
1732 #ifndef NDEBUG 1736 #ifndef NDEBUG
1733 // Outside the WebCore namespace for ease of invocation from gdb. 1737 // Outside the WebCore namespace for ease of invocation from gdb.
1734 CORE_EXPORT void showLiveDocumentInstances(); 1738 CORE_EXPORT void showLiveDocumentInstances();
1735 #endif 1739 #endif
1736 1740
1737 #endif // Document_h 1741 #endif // Document_h
OLDNEW
« no previous file with comments | « content/test/test_render_frame_host.cc ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698