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 WebContents; | |
14 | |
15 // TODO(ekaramad): This class is temporarily added to provide a workaround for | |
16 // allowing the existence of some guests based on browser plugin rather than | |
17 // cross process frames. It will be removed once the issue | |
18 // https://crbug.com/642826 is resolved. | |
Charlie Reis
2016/09/23 05:21:26
I think we can leave out this TODO. Even when the
EhsanK
2016/09/23 14:53:22
Acknowledged.
| |
19 class CONTENT_EXPORT GuestMode { | |
20 public: | |
21 // Returns true if |web_contents| is an inner WebContents based on cross | |
22 // process frames. | |
23 static bool IsCrossProcessFrameGuest(WebContents* web_contents); | |
24 | |
25 private: | |
26 GuestMode(); | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(GuestMode); | |
29 }; | |
30 | |
31 } // namespace content | |
32 | |
33 #endif // CONTENT_PUBLIC_BROWSER_GUEST_MODE_H_ | |
OLD | NEW |