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 #include "content/public/browser/browser_plugin_guest_delegate.h" | 5 #include "content/public/browser/browser_plugin_guest_delegate.h" |
| 6 | 6 |
| 7 namespace content { | 7 namespace content { |
| 8 | 8 |
| 9 bool BrowserPluginGuestDelegate::CanRunInDetachedState() const { | 9 bool BrowserPluginGuestDelegate::CanRunInDetachedState() const { |
| 10 return false; | 10 return false; |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 | 29 |
| 30 bool BrowserPluginGuestDelegate::HandleStopFindingForEmbedder( | 30 bool BrowserPluginGuestDelegate::HandleStopFindingForEmbedder( |
| 31 StopFindAction action) { | 31 StopFindAction action) { |
| 32 return false; | 32 return false; |
| 33 } | 33 } |
| 34 | 34 |
| 35 bool BrowserPluginGuestDelegate::CanUseCrossProcessFrames() { | 35 bool BrowserPluginGuestDelegate::CanUseCrossProcessFrames() { |
| 36 return true; | 36 return true; |
| 37 } | 37 } |
| 38 | 38 |
| 39 RenderFrameHost* BrowserPluginGuestDelegate::GetEmbedderFrame() { | |
| 40 if (GetOwnerWebContents()) | |
| 41 return GetOwnerWebContents()->GetMainFrame(); | |
|
nasko
2016/10/27 21:03:40
Why return the main frame here? Isn't this suppose
EhsanK
2016/10/27 22:06:48
The only way we can have A->B->C->GuestView right
nasko
2016/11/09 01:13:07
Why not? I don't think we have any code restrictio
EhsanK
2016/11/15 19:54:22
I double checked and as you said three is ways to
Charlie Reis
2016/11/15 23:45:32
This seems wrong to me. We shouldn't be returning
| |
| 42 return nullptr; | |
| 43 } | |
| 44 | |
| 39 } // namespace content | 45 } // namespace content |
| OLD | NEW |