origin_trials_component_loader.h 856 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 ANDROID_WEBVIEW_BROWSER_COMPONENT_UPDATER_ORIGIN_TRIALS_COMPONENT_LOADER_H_
  5. #define ANDROID_WEBVIEW_BROWSER_COMPONENT_UPDATER_ORIGIN_TRIALS_COMPONENT_LOADER_H_
  6. #include "components/component_updater/android/component_loader_policy_forward.h"
  7. namespace component_updater {
  8. class ComponentLoaderPolicy;
  9. } // namespace component_updater
  10. namespace android_webview {
  11. // Adds origin trials ComponentLoaderPolicy to `policies`, if Origin Trials
  12. // support is enabled.
  13. void LoadOriginTrialsComponent(
  14. component_updater::ComponentLoaderPolicyVector& policies);
  15. } // namespace android_webview
  16. #endif // ANDROID_WEBVIEW_BROWSER_COMPONENT_UPDATER_ORIGIN_TRIALS_COMPONENT_LOADER_H_