Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef RemoteDOMWindow_h | 5 #ifndef RemoteDOMWindow_h |
| 6 #define RemoteDOMWindow_h | 6 #define RemoteDOMWindow_h |
| 7 | 7 |
| 8 #include "core/frame/DOMWindow.h" | 8 #include "core/frame/DOMWindow.h" |
| 9 #include "core/frame/RemoteFrame.h" | 9 #include "core/frame/RemoteFrame.h" |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, const Strin g& pseudoElt) const override; | 76 PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, const Strin g& pseudoElt) const override; |
| 77 int requestAnimationFrame(FrameRequestCallback*) override; | 77 int requestAnimationFrame(FrameRequestCallback*) override; |
| 78 int webkitRequestAnimationFrame(FrameRequestCallback*) override; | 78 int webkitRequestAnimationFrame(FrameRequestCallback*) override; |
| 79 void cancelAnimationFrame(int id) override; | 79 void cancelAnimationFrame(int id) override; |
| 80 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&) ove rride; | 80 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&) ove rride; |
| 81 void cancelIdleCallback(int id) override; | 81 void cancelIdleCallback(int id) override; |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 explicit RemoteDOMWindow(RemoteFrame&); | 84 explicit RemoteDOMWindow(RemoteFrame&); |
| 85 | 85 |
| 86 RawPtrWillBeMember<RemoteFrame> m_frame; | 86 RawPtrWillBeWeakMember<RemoteFrame> m_frame; |
|
haraken
2015/11/30 01:48:47
I'm wondering why this needs to be a weak member.
sof
2015/11/30 06:25:47
The RemoteDOMWindow will turn into the global obje
| |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace blink | 89 } // namespace blink |
| 90 | 90 |
| 91 #endif // DOMWindow_h | 91 #endif // DOMWindow_h |
| OLD | NEW |