Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_GUEST_MODE_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_GUEST_MODE_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "content/common/content_export.h" | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 class RenderViewHost; | |
| 14 class WebContents; | |
| 15 | |
| 16 // TODO(ekaramad): This class is temporarily added to provide a workaround for | |
| 17 // allowing the existence of some guests based on browser plugin rather than | |
| 18 // cross process frames. It will be removed once the issue | |
| 19 // https://crbug.com/642826 is resolved. | |
| 20 class CONTENT_EXPORT GuestMode { | |
| 21 public: | |
| 22 // Returns true if |web_contents| is an inner WebContents based on cross | |
| 23 // process frames. | |
| 24 static bool IsInnerWebContentsUsingCrossProcessFrames( | |
|
Charlie Reis
2016/09/21 22:18:21
Given that we're calling this class GuestMode (and
EhsanK
2016/09/22 22:55:44
Acknowledged.
| |
| 25 WebContents* web_contents); | |
| 26 | |
| 27 // Returns true if the |rvh| belongs to an inner WebContents based on cross | |
| 28 // process frames. | |
| 29 static bool ForInnerWebContentsUsingCrossProcessFrames(RenderViewHost* rvh); | |
|
Charlie Reis
2016/09/21 22:18:21
IsCrossProcessFrameGuest(rvh)
(Actually, we can r
EhsanK
2016/09/22 22:55:44
Acknowledged.
| |
| 30 }; | |
| 31 | |
| 32 } // namespace content | |
| 33 | |
| 34 #endif // CONTENT_PUBLIC_BROWSER_GUEST_MODE_H_ | |
| OLD | NEW |