2024-04-27 03:21:18 +02:00
|
|
|
// Copyright 2024 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.
|
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_BROWSER_CHROME_EXTENSIONS_CHROME_EXTENSION_UTIL_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_CHROME_EXTENSIONS_CHROME_EXTENSION_UTIL_H_
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace content {
|
|
|
|
class WebContents;
|
|
|
|
} // namespace content
|
|
|
|
|
|
|
|
class Profile;
|
|
|
|
|
|
|
|
namespace cef {
|
|
|
|
|
|
|
|
// Same as ExtensionTabUtil::GetTabById but searching only Alloy style
|
|
|
|
// CefBrowserHosts.
|
|
|
|
bool GetAlloyTabById(int tab_id,
|
|
|
|
Profile* profile,
|
|
|
|
bool include_incognito,
|
|
|
|
content::WebContents** contents);
|
|
|
|
|
2024-05-20 22:21:37 +02:00
|
|
|
// Returns true if |contents| is owned by an Alloy style CefBrowserHost.
|
|
|
|
// If |primary_only| is false then guest contents will also be matched.
|
|
|
|
bool IsAlloyContents(content::WebContents* contents, bool primary_only);
|
|
|
|
|
2024-04-27 03:21:18 +02:00
|
|
|
} // namespace cef
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_CHROME_EXTENSIONS_CHROME_EXTENSION_UTIL_H_
|