is_browser_initiated.h 711 B

12345678910111213141516171819
  1. // Copyright 2022 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 SERVICES_NETWORK_IS_BROWSER_INITIATED_H_
  5. #define SERVICES_NETWORK_IS_BROWSER_INITIATED_H_
  6. #include "base/types/strong_alias.h"
  7. namespace network {
  8. // A boolean-like type to represent whether a URLLoaderFactory is created for
  9. // the browser process. This is naturally extended for contexts attached to
  10. // URLLoaderFactories. See URLLoaderFactoryParams.process_id for details.
  11. using IsBrowserInitiated = base::StrongAlias<class IsBrowserInitiatedTag, bool>;
  12. } // namespace network
  13. #endif // SERVICES_NETWORK_IS_BROWSER_INITIATED_H_