# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

Classes = [
    {
        'cid': '{b4f96c89-5238-450c-8bda-e12c26f1d150}',
        'contract_ids': ['@mozilla.org/network/well-known-opportunistic-utils;1'],
        'esModule': 'resource://gre/modules/WellKnownOpportunisticUtils.sys.mjs',
        'constructor': 'WellKnownOpportunisticUtils',
    },
    {
        'cid': '{b43b3f73-8160-4ab2-9f5d-4129a9708081}',
        'contract_ids': ['@mozilla.org/network/binary-http;1'],
        'headers': ['/netwerk/protocol/http/binary_http/src/binary_http.h'],
        'legacy_constructor': 'binary_http_constructor',
    },
    {
        'cid': '{d581149e-3319-4563-b95e-46c64af5c4e8}',
        'contract_ids': ['@mozilla.org/network/oblivious-http;1'],
        'headers': ['/netwerk/protocol/http/oblivious_http/src/oblivious_http.h'],
        'legacy_constructor': 'oblivious_http_constructor',
    },
    {
        'cid': '{b1f08d56-fca6-4290-9500-d5168dc9d8c3}',
        'contract_ids': ['@mozilla.org/network/oblivious-http-service;1'],
        'interfaces': ['nsIObliviousHttpService'],
        'type': 'mozilla::net::ObliviousHttpService',
        'headers': ['/netwerk/protocol/http/ObliviousHttpService.h'],
    },
    {
        'cid': '{067cb318-9b67-4442-9c1c-93e62dac8a7c}',
        'contract_ids': ['@mozilla.org/network/replaced-http-response;1'],
        'interfaces': ['nsIReplacedHttpResponse'],
        'type': 'mozilla::net::ReplacedHttpResponse',
        'headers': ['/netwerk/protocol/http/ReplacedHttpResponse.h'],
    },
    {
        'name': 'NetworkErrorLogging',
        'cid': '{ce24d145-19f5-43ed-a0d1-09385850b1cc}',
        'contract_ids': ['@mozilla.org/network-error-logging;1'],
        'esModule': 'resource://gre/modules/NetworkErrorLogging.sys.mjs',
        'constructor': 'NetworkErrorLogging',
        'singleton': True,
        'processes': ProcessSelector.MAIN_PROCESS_ONLY,
    },
]
