[email protected] | 6ff1c33 | 2023-03-08 10:01:47 | [diff] [blame] | 1 | |
| 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 Dac | e474915 | 2023-05-04 19:10:12 | [diff] [blame^] | 12 | class ProfileSelections; |
| 13 | |
[email protected] | 6ff1c33 | 2023-03-08 10:01:47 | [diff] [blame] | 14 | namespace supervised_user { |
| 15 | |
Duong Dac | e474915 | 2023-05-04 19:10:12 | [diff] [blame^] | 16 | // Returns true if both the extensions are enabled and the provided url is a |
| 17 | // Webstore or Download url. |
[email protected] | 6ff1c33 | 2023-03-08 10:01:47 | [diff] [blame] | 18 | bool IsSupportedChromeExtensionURL(const GURL& effective_url); |
| 19 | |
| 20 | // Returns true if the parent allowlist should be skipped. |
| 21 | bool ShouldContentSkipParentAllowlistFiltering(content::WebContents* contents); |
| 22 | |
Duong Dac | e474915 | 2023-05-04 19:10:12 | [diff] [blame^] | 23 | // Returns how supervised_user factories that are needed in Guest profile |
| 24 | // should be created. |
| 25 | ProfileSelections BuildProfileSelectionsForRegularAndGuest(); |
| 26 | |
| 27 | // Returns how several supervised_user factories are created before the |
| 28 | // `supervised_user::kUpdateSupervisedUserFactoryCreation` feature is enabled. |
| 29 | ProfileSelections BuildProfileSelectionsLegacy(); |
| 30 | |
[email protected] | 6ff1c33 | 2023-03-08 10:01:47 | [diff] [blame] | 31 | } // namespace supervised_user |
| 32 | |
| 33 | #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_BROWSER_UTILS_H_ |