weblayer_user_population_helper.h 817 B

1234567891011121314151617181920212223
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef WEBLAYER_BROWSER_SAFE_BROWSING_WEBLAYER_USER_POPULATION_HELPER_H_
  5. #define WEBLAYER_BROWSER_SAFE_BROWSING_WEBLAYER_USER_POPULATION_HELPER_H_
  6. #include "components/safe_browsing/core/common/proto/csd.pb.h"
  7. namespace content {
  8. class BrowserContext;
  9. }
  10. namespace weblayer {
  11. // A convenience function that creates a ChromeUserPopulation proto for the
  12. // given |browser_context| and populates it appropriately for WebLayer.
  13. safe_browsing::ChromeUserPopulation GetUserPopulationForBrowserContext(
  14. content::BrowserContext* browser_context);
  15. } // namespace weblayer
  16. #endif // WEBLAYER_BROWSER_SAFE_BROWSING_WEBLAYER_USER_POPULATION_HELPER_H_