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 15 matching lines...) Expand all Loading... |
26 | 26 |
27 #ifndef Internals_h | 27 #ifndef Internals_h |
28 #define Internals_h | 28 #define Internals_h |
29 | 29 |
30 #include "bindings/v8/ExceptionStatePlaceholder.h" | 30 #include "bindings/v8/ExceptionStatePlaceholder.h" |
31 #include "bindings/v8/ScriptValue.h" | 31 #include "bindings/v8/ScriptValue.h" |
32 #include "core/css/CSSComputedStyleDeclaration.h" | 32 #include "core/css/CSSComputedStyleDeclaration.h" |
33 #include "core/dom/ContextLifecycleObserver.h" | 33 #include "core/dom/ContextLifecycleObserver.h" |
34 #include "core/dom/NodeList.h" | 34 #include "core/dom/NodeList.h" |
35 #include "core/page/scrolling/ScrollingCoordinator.h" | 35 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 36 #include "platform/Timer.h" |
36 #include "wtf/ArrayBuffer.h" | 37 #include "wtf/ArrayBuffer.h" |
37 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
38 #include "wtf/RefCounted.h" | 39 #include "wtf/RefCounted.h" |
39 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
40 | 41 |
41 namespace WebCore { | 42 namespace WebCore { |
42 | 43 |
43 class ClientRect; | 44 class ClientRect; |
44 class ClientRectList; | 45 class ClientRectList; |
45 class DOMPoint; | 46 class DOMPoint; |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 292 |
292 String getImageSourceURL(Element*, ExceptionState&); | 293 String getImageSourceURL(Element*, ExceptionState&); |
293 | 294 |
294 bool isSelectPopupVisible(Node*); | 295 bool isSelectPopupVisible(Node*); |
295 | 296 |
296 PassRefPtr<ClientRect> selectionBounds(ExceptionState&); | 297 PassRefPtr<ClientRect> selectionBounds(ExceptionState&); |
297 String baseURL(Document*, ExceptionState&); | 298 String baseURL(Document*, ExceptionState&); |
298 | 299 |
299 bool loseSharedGraphicsContext3D(); | 300 bool loseSharedGraphicsContext3D(); |
300 | 301 |
| 302 void garbageCollectV8WithoutContext(); |
| 303 void garbageCollectV8WithoutContextTimerFired(Timer<Internals>*); |
| 304 |
301 private: | 305 private: |
302 explicit Internals(Document*); | 306 explicit Internals(Document*); |
303 Document* contextDocument() const; | 307 Document* contextDocument() const; |
304 Frame* frame() const; | 308 Frame* frame() const; |
305 Vector<String> iconURLs(Document*, int iconTypesMask) const; | 309 Vector<String> iconURLs(Document*, int iconTypesMask) const; |
306 PassRefPtr<ClientRectList> annotatedRegions(Document*, bool draggable, Excep
tionState&); | 310 PassRefPtr<ClientRectList> annotatedRegions(Document*, bool draggable, Excep
tionState&); |
307 | 311 |
308 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionState&); | 312 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionState&); |
309 RefPtr<DOMWindow> m_frontendWindow; | 313 RefPtr<DOMWindow> m_frontendWindow; |
310 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel; | 314 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel; |
311 RefPtr<InternalRuntimeFlags> m_runtimeFlags; | 315 RefPtr<InternalRuntimeFlags> m_runtimeFlags; |
312 RefPtr<ScrollingCoordinator> m_scrollingCoordinator; | 316 RefPtr<ScrollingCoordinator> m_scrollingCoordinator; |
313 RefPtr<InternalProfilers> m_profilers; | 317 RefPtr<InternalProfilers> m_profilers; |
| 318 Timer<Internals> m_gcWithoutContextTimer; |
314 }; | 319 }; |
315 | 320 |
316 } // namespace WebCore | 321 } // namespace WebCore |
317 | 322 |
318 #endif | 323 #endif |
OLD | NEW |