2015-07-16 23:40:01 +02:00
|
|
|
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
2024-07-02 19:50:48 +02:00
|
|
|
#ifndef CEF_LIBCEF_BROWSER_BROWSER_GUEST_UTIL_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_BROWSER_GUEST_UTIL_H_
|
2015-07-16 23:40:01 +02:00
|
|
|
|
|
|
|
namespace content {
|
|
|
|
class WebContents;
|
2017-08-04 00:55:19 +02:00
|
|
|
} // namespace content
|
2015-07-16 23:40:01 +02:00
|
|
|
|
2015-08-17 21:48:57 +02:00
|
|
|
// Returns the WebContents that owns the specified |guest|, if any.
|
2024-04-17 18:01:26 +02:00
|
|
|
content::WebContents* GetOwnerForGuestContents(
|
|
|
|
const content::WebContents* guest);
|
2015-10-12 22:45:14 +02:00
|
|
|
|
2024-04-17 18:01:26 +02:00
|
|
|
// Test for different types of guest contents.
|
|
|
|
bool IsBrowserPluginGuest(const content::WebContents* web_contents);
|
|
|
|
bool IsPrintPreviewDialog(const content::WebContents* web_contents);
|
2015-10-12 22:45:14 +02:00
|
|
|
|
2024-07-02 19:50:48 +02:00
|
|
|
#endif // CEF_LIBCEF_BROWSER_BROWSER_GUEST_UTIL_H_
|