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 #include "wtf/Assertions.h" | 10 #include "platform/wtf/Assertions.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class RemoteDOMWindow final : public DOMWindow { | 14 class RemoteDOMWindow final : public DOMWindow { |
15 public: | 15 public: |
16 static RemoteDOMWindow* Create(RemoteFrame& frame) { | 16 static RemoteDOMWindow* Create(RemoteFrame& frame) { |
17 return new RemoteDOMWindow(frame); | 17 return new RemoteDOMWindow(frame); |
18 } | 18 } |
19 | 19 |
20 RemoteFrame* GetFrame() const { return ToRemoteFrame(DOMWindow::GetFrame()); } | 20 RemoteFrame* GetFrame() const { return ToRemoteFrame(DOMWindow::GetFrame()); } |
(...skipping 24 matching lines...) Expand all Loading... |
45 | 45 |
46 DEFINE_TYPE_CASTS(RemoteDOMWindow, | 46 DEFINE_TYPE_CASTS(RemoteDOMWindow, |
47 DOMWindow, | 47 DOMWindow, |
48 x, | 48 x, |
49 x->IsRemoteDOMWindow(), | 49 x->IsRemoteDOMWindow(), |
50 x.IsRemoteDOMWindow()); | 50 x.IsRemoteDOMWindow()); |
51 | 51 |
52 } // namespace blink | 52 } // namespace blink |
53 | 53 |
54 #endif // DOMWindow_h | 54 #endif // DOMWindow_h |
OLD | NEW |