| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_COMMON_BROWSER_PLUGIN_GUEST_MODE_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_MODE_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_MODE_H_ | 6 #define CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_MODE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 class WebContents; |
| 14 |
| 13 class CONTENT_EXPORT BrowserPluginGuestMode { | 15 class CONTENT_EXPORT BrowserPluginGuestMode { |
| 14 public: | 16 public: |
| 15 // Returns true if inner WebContents should be implemented in terms of cross- | 17 // Returns true if inner WebContents should be implemented in terms of cross- |
| 16 // process iframes. | 18 // process iframes. |
| 17 static bool UseCrossProcessFramesForGuests(); | 19 static bool UseCrossProcessFramesForGuests(); |
| 18 | 20 |
| 21 // TODO(ekaramad): Remove the following method once MimeHandlerViewGuest uses |
| 22 // OOPIF (https://crbug.com/563285). |
| 23 // Returns true if the given |web_contents| is implemented in terms of |
| 24 // cross-process iframes. |
| 25 static bool UseCrossProcessFramesForWebContents(WebContents* web_contents); |
| 26 |
| 19 private: | 27 private: |
| 20 BrowserPluginGuestMode(); // Not instantiable | 28 BrowserPluginGuestMode(); // Not instantiable |
| 21 | 29 |
| 22 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuestMode); | 30 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuestMode); |
| 23 }; | 31 }; |
| 24 | 32 |
| 25 } // namespace | 33 } // namespace |
| 26 | 34 |
| 27 #endif // CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_MODE_H_ | 35 #endif // CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_MODE_H_ |
| OLD | NEW |