Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: content/public/browser/browser_plugin_guest_delegate.cc

Issue 2417693002: Allow MimeHandlerViewGuest be embedded inside OOPIFs (Closed)
Patch Set: Rebased Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698