OLD | NEW |
---|---|
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 // Sets the position of the context menu for the guest contents. The value | 86 // Sets the position of the context menu for the guest contents. The value |
87 // reported from the guest renderer should be ignored. The reported value | 87 // reported from the guest renderer should be ignored. The reported value |
88 // fromt he guest renderer is incorrect in situations where BrowserPlugin is | 88 // fromt he guest renderer is incorrect in situations where BrowserPlugin is |
89 // subject to CSS transforms. | 89 // subject to CSS transforms. |
90 virtual void SetContextMenuPosition(const gfx::Point& position) {} | 90 virtual void SetContextMenuPosition(const gfx::Point& position) {} |
91 | 91 |
92 // TODO(ekaramad): A short workaround to force some types of guests to use | 92 // TODO(ekaramad): A short workaround to force some types of guests to use |
93 // a BrowserPlugin even when we are using cross process frames for guests. It | 93 // a BrowserPlugin even when we are using cross process frames for guests. It |
94 // should be removed after resolving https://crbug.com/642826). | 94 // should be removed after resolving https://crbug.com/642826). |
95 virtual bool CanUseCrossProcessFrames(); | 95 virtual bool CanUseCrossProcessFrames(); |
96 | |
97 // Returns the RenderFrameHost corresponding to the RenderFrame embedding the | |
98 // BrowserPlugin. This is the main frame for the owner of the guests, unless | |
99 // the guest is embedded inside a cross origin frame. | |
Charlie Reis
2016/11/15 23:45:33
Sorry, I don't think this API makes sense. The fi
EhsanK
2016/11/16 21:27:31
Yes you are right. I was too focused on the OOPIF
| |
100 virtual RenderFrameHost* GetOwnerFrame(); | |
101 | |
102 // Returns true if the corresponding guest is allowed to be embedded inside an | |
103 // <iframe> which is cross process. | |
104 virtual bool CanBeEmbeddedInsideCrossProcessFrames(); | |
96 }; | 105 }; |
97 | 106 |
98 } // namespace content | 107 } // namespace content |
99 | 108 |
100 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 109 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
OLD | NEW |