| 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 #include "core/exported/WebRemoteFrameImpl.h" | 5 #include "core/exported/WebRemoteFrameImpl.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/WindowProxy.h" | 7 #include "bindings/core/v8/WindowProxy.h" |
| 8 #include "core/dom/Fullscreen.h" | 8 #include "core/dom/Fullscreen.h" |
| 9 #include "core/dom/RemoteSecurityContext.h" | 9 #include "core/dom/RemoteSecurityContext.h" |
| 10 #include "core/dom/SecurityContext.h" | 10 #include "core/dom/SecurityContext.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 } | 125 } |
| 126 | 126 |
| 127 WebView* WebRemoteFrameImpl::View() const { | 127 WebView* WebRemoteFrameImpl::View() const { |
| 128 if (!GetFrame()) { | 128 if (!GetFrame()) { |
| 129 return nullptr; | 129 return nullptr; |
| 130 } | 130 } |
| 131 DCHECK(GetFrame()->GetPage()); | 131 DCHECK(GetFrame()->GetPage()); |
| 132 return GetFrame()->GetPage()->GetChromeClient().GetWebView(); | 132 return GetFrame()->GetPage()->GetChromeClient().GetWebView(); |
| 133 } | 133 } |
| 134 | 134 |
| 135 WebDocument WebRemoteFrameImpl::GetDocument() const { | |
| 136 // TODO(dcheng): this should also ASSERT_NOT_REACHED, but a lot of | |
| 137 // code tries to access the document of a remote frame at the moment. | |
| 138 return WebDocument(); | |
| 139 } | |
| 140 | |
| 141 WebPerformance WebRemoteFrameImpl::Performance() const { | 135 WebPerformance WebRemoteFrameImpl::Performance() const { |
| 142 NOTREACHED(); | 136 NOTREACHED(); |
| 143 return WebPerformance(); | 137 return WebPerformance(); |
| 144 } | 138 } |
| 145 | 139 |
| 146 void WebRemoteFrameImpl::Reload(WebFrameLoadType) { | 140 void WebRemoteFrameImpl::Reload(WebFrameLoadType) { |
| 147 NOTREACHED(); | 141 NOTREACHED(); |
| 148 } | 142 } |
| 149 | 143 |
| 150 void WebRemoteFrameImpl::ReloadWithOverrideURL(const WebURL& override_url, | 144 void WebRemoteFrameImpl::ReloadWithOverrideURL(const WebURL& override_url, |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 } | 390 } |
| 397 | 391 |
| 398 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, | 392 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, |
| 399 WebRemoteFrameClient* client) | 393 WebRemoteFrameClient* client) |
| 400 : WebRemoteFrameBase(scope), | 394 : WebRemoteFrameBase(scope), |
| 401 frame_client_(RemoteFrameClientImpl::Create(this)), | 395 frame_client_(RemoteFrameClientImpl::Create(this)), |
| 402 client_(client), | 396 client_(client), |
| 403 self_keep_alive_(this) {} | 397 self_keep_alive_(this) {} |
| 404 | 398 |
| 405 } // namespace blink | 399 } // namespace blink |
| OLD | NEW |