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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.h

Issue 1703883002: Eagerly unregister PostMessageTimer as a context observer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
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 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 10 matching lines...) Expand all
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef LocalDOMWindow_h 27 #ifndef LocalDOMWindow_h
28 #define LocalDOMWindow_h 28 #define LocalDOMWindow_h
29 29
30 #include "core/CoreExport.h" 30 #include "core/CoreExport.h"
31 #include "core/dom/MessagePort.h"
32 #include "core/events/EventTarget.h" 31 #include "core/events/EventTarget.h"
33 #include "core/frame/DOMWindow.h" 32 #include "core/frame/DOMWindow.h"
34 #include "core/frame/DOMWindowLifecycleNotifier.h" 33 #include "core/frame/DOMWindowLifecycleNotifier.h"
35 #include "core/frame/DOMWindowLifecycleObserver.h" 34 #include "core/frame/DOMWindowLifecycleObserver.h"
36 #include "core/frame/LocalFrame.h" 35 #include "core/frame/LocalFrame.h"
37 #include "core/frame/LocalFrameLifecycleObserver.h" 36 #include "core/frame/LocalFrameLifecycleObserver.h"
38 #include "platform/Supplementable.h" 37 #include "platform/Supplementable.h"
39 #include "platform/heap/Handle.h" 38 #include "platform/heap/Handle.h"
40 39
41 #include "wtf/Assertions.h" 40 #include "wtf/Assertions.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 void resizeBy(int x, int y) const override; 138 void resizeBy(int x, int y) const override;
140 void resizeTo(int width, int height) const override; 139 void resizeTo(int width, int height) const override;
141 PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) override; 140 PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) override;
142 PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element*, const String& pseudoElt) const override; 141 PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element*, const String& pseudoElt) const override;
143 PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, const Strin g& pseudoElt) const override; 142 PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, const Strin g& pseudoElt) const override;
144 int requestAnimationFrame(FrameRequestCallback*) override; 143 int requestAnimationFrame(FrameRequestCallback*) override;
145 int webkitRequestAnimationFrame(FrameRequestCallback*) override; 144 int webkitRequestAnimationFrame(FrameRequestCallback*) override;
146 void cancelAnimationFrame(int id) override; 145 void cancelAnimationFrame(int id) override;
147 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&) ove rride; 146 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&) ove rride;
148 void cancelIdleCallback(int id) override; 147 void cancelIdleCallback(int id) override;
149 void schedulePostMessage(PassRefPtrWillBeRawPtr<MessageEvent>, LocalDOMWindo w* source, SecurityOrigin* target, PassRefPtr<ScriptCallStack> stackTrace); 148 void schedulePostMessage(PassRefPtrWillBeRawPtr<MessageEvent>, SecurityOrigi n* target, PassRefPtr<ScriptCallStack>);
150 149
151 void registerProperty(DOMWindowProperty*); 150 void registerProperty(DOMWindowProperty*);
152 void unregisterProperty(DOMWindowProperty*); 151 void unregisterProperty(DOMWindowProperty*);
153 152
154 void reset(); 153 void reset();
155 154
156 unsigned pendingUnloadEventListeners() const; 155 unsigned pendingUnloadEventListeners() const;
157 156
158 bool allowPopUp(); // Call on first window, not target window. 157 bool allowPopUp(); // Call on first window, not target window.
159 static bool allowPopUp(LocalFrame& firstFrame); 158 static bool allowPopUp(LocalFrame& firstFrame);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 283 }
285 284
286 inline String LocalDOMWindow::defaultStatus() const 285 inline String LocalDOMWindow::defaultStatus() const
287 { 286 {
288 return m_defaultStatus; 287 return m_defaultStatus;
289 } 288 }
290 289
291 } // namespace blink 290 } // namespace blink
292 291
293 #endif // LocalDOMWindow_h 292 #endif // LocalDOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698