blob: afa565b54f8960d54df3d000380f4913d2f3bb18 [file] [log] [blame]
[email protected]6ff1c332023-03-08 10:01:471
2// Copyright 2023 The Chromium Authors
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5
6#ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_BROWSER_UTILS_H_
7#define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_BROWSER_UTILS_H_
8
9#include "content/public/browser/web_contents.h"
10#include "url/gurl.h"
11
Duong Dace4749152023-05-04 19:10:1212class ProfileSelections;
13
[email protected]6ff1c332023-03-08 10:01:4714namespace supervised_user {
15
Duong Dace4749152023-05-04 19:10:1216// Returns true if both the extensions are enabled and the provided url is a
17// Webstore or Download url.
[email protected]6ff1c332023-03-08 10:01:4718bool IsSupportedChromeExtensionURL(const GURL& effective_url);
19
20// Returns true if the parent allowlist should be skipped.
21bool ShouldContentSkipParentAllowlistFiltering(content::WebContents* contents);
22
Duong Dace4749152023-05-04 19:10:1223// Returns how supervised_user factories that are needed in Guest profile
24// should be created.
25ProfileSelections BuildProfileSelectionsForRegularAndGuest();
26
27// Returns how several supervised_user factories are created before the
28// `supervised_user::kUpdateSupervisedUserFactoryCreation` feature is enabled.
29ProfileSelections BuildProfileSelectionsLegacy();
30
[email protected]6ff1c332023-03-08 10:01:4731} // namespace supervised_user
32
33#endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_BROWSER_UTILS_H_