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

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

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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/process/kill.h" 9 #include "base/process/kill.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Sets the position of the context menu for the guest contents. The value 90 // Sets the position of the context menu for the guest contents. The value
91 // reported from the guest renderer should be ignored. The reported value 91 // reported from the guest renderer should be ignored. The reported value
92 // fromt he guest renderer is incorrect in situations where BrowserPlugin is 92 // fromt he guest renderer is incorrect in situations where BrowserPlugin is
93 // subject to CSS transforms. 93 // subject to CSS transforms.
94 virtual void SetContextMenuPosition(const gfx::Point& position) {} 94 virtual void SetContextMenuPosition(const gfx::Point& position) {}
95 95
96 // TODO(ekaramad): A short workaround to force some types of guests to use 96 // TODO(ekaramad): A short workaround to force some types of guests to use
97 // a BrowserPlugin even when we are using cross process frames for guests. It 97 // a BrowserPlugin even when we are using cross process frames for guests. It
98 // should be removed after resolving https://crbug.com/642826). 98 // should be removed after resolving https://crbug.com/642826).
99 virtual bool CanUseCrossProcessFrames(); 99 virtual bool CanUseCrossProcessFrames();
100
101 // Returns the RenderFrameHost corresponding to the RenderFrame embedding the
102 // BrowserPlugin. This is the main frame for the owner of the guests, unless,
nasko 2016/10/27 21:03:40 Based on the implementation, it returns the main f
EhsanK 2016/10/27 22:06:48 As far as I can tell, only MimeHandlerViewGuest ca
nasko 2016/11/09 01:13:07 I haven't had a chance to try it manually, but oth
EhsanK 2016/11/15 19:54:22 You are right but I have not been able to do it in
103 // the guest is embedded inside a cross origin frame.
nasko 2016/10/27 21:03:40 Can we have cross-origin frames in apps?
EhsanK 2016/10/27 22:06:48 I don't think we can use <iframe>'s in apps at all
nasko 2016/11/09 01:13:07 AFAIK, you can use <iframes> to local files in the
EhsanK 2016/11/15 19:54:22 You are correct. I could do this using web_accessi
Charlie Reis 2016/11/15 23:45:32 We don't need to support the more general case in
104 virtual RenderFrameHost* GetEmbedderFrame();
100 }; 105 };
101 106
102 } // namespace content 107 } // namespace content
103 108
104 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 109 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698