OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 10 matching lines...) Expand all Loading... |
21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef Internals_h | 27 #ifndef Internals_h |
28 #define Internals_h | 28 #define Internals_h |
29 | 29 |
30 #include "core/css/CSSComputedStyleDeclaration.h" | 30 #include "core/css/CSSComputedStyleDeclaration.h" |
31 #include "core/dom/ContextDestructionObserver.h" | 31 #include "core/dom/ContextLifecycleObserver.h" |
32 #include "core/dom/ExceptionCodePlaceholder.h" | 32 #include "core/dom/ExceptionCodePlaceholder.h" |
33 #include "core/dom/NodeList.h" | 33 #include "core/dom/NodeList.h" |
34 #include <wtf/ArrayBuffer.h> | 34 #include <wtf/ArrayBuffer.h> |
35 #include <wtf/PassRefPtr.h> | 35 #include <wtf/PassRefPtr.h> |
36 #include <wtf/RefCounted.h> | 36 #include <wtf/RefCounted.h> |
37 #include <wtf/text/WTFString.h> | 37 #include <wtf/text/WTFString.h> |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 class ClientRect; | 41 class ClientRect; |
(...skipping 13 matching lines...) Expand all Loading... |
55 class PagePopupController; | 55 class PagePopupController; |
56 class Range; | 56 class Range; |
57 class ScriptExecutionContext; | 57 class ScriptExecutionContext; |
58 class ShadowRoot; | 58 class ShadowRoot; |
59 class MallocStatistics; | 59 class MallocStatistics; |
60 class SerializedScriptValue; | 60 class SerializedScriptValue; |
61 class TypeConversions; | 61 class TypeConversions; |
62 | 62 |
63 typedef int ExceptionCode; | 63 typedef int ExceptionCode; |
64 | 64 |
65 class Internals : public RefCounted<Internals> | 65 class Internals : public RefCounted<Internals>, public ContextLifecycleObserver
{ |
66 , public ContextDestructionObserver { | |
67 public: | 66 public: |
68 static PassRefPtr<Internals> create(Document*); | 67 static PassRefPtr<Internals> create(Document*); |
69 virtual ~Internals(); | 68 virtual ~Internals(); |
70 | 69 |
71 static void resetToConsistentState(Page*); | 70 static void resetToConsistentState(Page*); |
72 | 71 |
73 String elementRenderTreeAsText(Element*, ExceptionCode&); | 72 String elementRenderTreeAsText(Element*, ExceptionCode&); |
74 | 73 |
75 String address(Node*); | 74 String address(Node*); |
76 | 75 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 | 287 |
289 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionCode&); | 288 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionCode&); |
290 RefPtr<DOMWindow> m_frontendWindow; | 289 RefPtr<DOMWindow> m_frontendWindow; |
291 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel; | 290 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel; |
292 RefPtr<InternalRuntimeFlags> m_runtimeFlags; | 291 RefPtr<InternalRuntimeFlags> m_runtimeFlags; |
293 }; | 292 }; |
294 | 293 |
295 } // namespace WebCore | 294 } // namespace WebCore |
296 | 295 |
297 #endif | 296 #endif |
OLD | NEW |