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(); |
| 42 return nullptr; |
| 43 } |
| 44 |
39 } // namespace content | 45 } // namespace content |
OLD | NEW |