| OLD | NEW |
| 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) 2013 Google Inc. All rights reserved. | 9 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * You should have received a copy of the GNU Library General Public License | 21 * You should have received a copy of the GNU Library General Public License |
| 22 * along with this library; see the file COPYING.LIB. If not, write to | 22 * along with this library; see the file COPYING.LIB. If not, write to |
| 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
| 25 * | 25 * |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef DocumentInit_h | 28 #ifndef DocumentInit_h |
| 29 #define DocumentInit_h | 29 #define DocumentInit_h |
| 30 | 30 |
| 31 #include "core/CoreExport.h" |
| 31 #include "core/dom/SandboxFlags.h" | 32 #include "core/dom/SandboxFlags.h" |
| 32 #include "core/dom/SecurityContext.h" | 33 #include "core/dom/SecurityContext.h" |
| 34 #include "core/dom/custom/CustomElementRegistrationContext.h" |
| 33 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 34 #include "platform/weborigin/KURL.h" | 36 #include "platform/weborigin/KURL.h" |
| 35 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
| 36 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
| 37 #include "wtf/WeakPtr.h" | 39 #include "wtf/WeakPtr.h" |
| 38 | 40 |
| 39 namespace blink { | 41 namespace blink { |
| 40 | 42 |
| 41 class CustomElementRegistrationContext; | |
| 42 class Document; | 43 class Document; |
| 43 class LocalFrame; | 44 class LocalFrame; |
| 44 class HTMLImportsController; | 45 class HTMLImportsController; |
| 45 class Settings; | 46 class Settings; |
| 46 | 47 |
| 47 class DocumentInit final { | 48 class CORE_EXPORT DocumentInit final { |
| 48 STACK_ALLOCATED(); | 49 STACK_ALLOCATED(); |
| 49 public: | 50 public: |
| 50 explicit DocumentInit(const KURL& = KURL(), LocalFrame* = 0, WeakPtrWillBeRa
wPtr<Document> = nullptr, HTMLImportsController* = 0); | 51 explicit DocumentInit(const KURL& = KURL(), LocalFrame* = 0, WeakPtrWillBeRa
wPtr<Document> = nullptr, HTMLImportsController* = 0); |
| 51 DocumentInit(const DocumentInit&); | 52 DocumentInit(const DocumentInit&); |
| 52 ~DocumentInit(); | 53 ~DocumentInit(); |
| 53 | 54 |
| 54 const KURL& url() const { return m_url; } | 55 const KURL& url() const { return m_url; } |
| 55 LocalFrame* frame() const { return m_frame; } | 56 LocalFrame* frame() const { return m_frame; } |
| 56 HTMLImportsController* importsController() const { return m_importsControlle
r; } | 57 HTMLImportsController* importsController() const { return m_importsControlle
r; } |
| 57 | 58 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // won't be blown away when the network load commits. To make that happen, w
e | 99 // won't be blown away when the network load commits. To make that happen, w
e |
| 99 // "securely transition" the existing LocalDOMWindow to the Document that re
sults from | 100 // "securely transition" the existing LocalDOMWindow to the Document that re
sults from |
| 100 // the network load. See also SecurityContext::isSecureTransitionTo. | 101 // the network load. See also SecurityContext::isSecureTransitionTo. |
| 101 // FIXME: This is for DocumentWriter creation, not for one of Document. | 102 // FIXME: This is for DocumentWriter creation, not for one of Document. |
| 102 bool m_shouldReuseDefaultView; | 103 bool m_shouldReuseDefaultView; |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace blink | 106 } // namespace blink |
| 106 | 107 |
| 107 #endif // DocumentInit_h | 108 #endif // DocumentInit_h |
| OLD | NEW |