mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
265e672179
# ignore-this-changeset --HG-- extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
|
|
/* 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/. */
|
|
|
|
#ifndef nr_socket_proxy_config__
|
|
#define nr_socket_proxy_config__
|
|
|
|
#include <memory>
|
|
#include "nsString.h"
|
|
|
|
class nsIPrincipal;
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
class PBrowserOrId;
|
|
}
|
|
|
|
class NrSocketProxyConfig {
|
|
public:
|
|
NrSocketProxyConfig(const dom::PBrowserOrId& aBrowser,
|
|
const nsCString& aAlpn);
|
|
// We need to actually write the default impl ourselves, because the compiler
|
|
// needs to know how to destroy mPrivate in case an exception is thrown, even
|
|
// though we disable exceptions in our build.
|
|
NrSocketProxyConfig(NrSocketProxyConfig&& aOrig);
|
|
|
|
~NrSocketProxyConfig();
|
|
|
|
const dom::PBrowserOrId& GetBrowser() const;
|
|
const nsCString& GetAlpn() const;
|
|
|
|
private:
|
|
// PBrowserOrId includes stuff that conflicts with nICEr includes.
|
|
// Make it possible to include this header file without tripping over this
|
|
// problem.
|
|
class Private;
|
|
std::unique_ptr<Private> mPrivate;
|
|
};
|
|
|
|
} // namespace mozilla
|
|
|
|
#endif // nr_socket_proxy_config__
|