#include <string>
#include <vector>
#include "chrome/browser/extensions/api/tabs/windows_util.h"
#include "base/strings/string_number_conversions.h"
#include "chrome/browser/extensions/api/tabs/tabs_constants.h"
#include "chrome/browser/extensions/chrome_extension_function_details.h"
#include "chrome/browser/extensions/extension_util.h"
#include "chrome/browser/extensions/window_controller.h"
#include "chrome/browser/extensions/window_controller_list.h"
#include "chrome/browser/prefs/incognito_mode_prefs.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_navigator.h"
#include "components/policy/core/common/policy_pref_names.h"
#include "extensions/browser/extension_function.h"
#include "extensions/browser/extension_function_dispatcher.h"
#include "extensions/common/constants.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/extension.h"
#include "url/gurl.h"
namespace windows_util {
bool GetBrowserFromWindowID(ExtensionFunction* function,
int window_id,
extensions::WindowController::TypeFilter filter,
Browser** browser,
std::string* error) { … }
bool CanOperateOnWindow(const ExtensionFunction* function,
const extensions::WindowController* controller,
extensions::WindowController::TypeFilter filter) { … }
IncognitoResult ShouldOpenIncognitoWindow(Profile* profile,
std::optional<bool> incognito,
std::vector<GURL>* urls,
std::string* error) { … }
}