#include "chrome/browser/private_network_access/private_network_device_chooser_controller.h"
#include <stddef.h>
#include <utility>
#include "base/functional/bind.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/browser/chooser_controller/title_util.h"
#include "chrome/browser/net/referrer.h"
#include "chrome/browser/private_network_access/private_network_device_permission_context.h"
#include "chrome/browser/private_network_access/private_network_device_permission_context_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/global_routing_id.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "services/network/public/mojom/url_loader_network_service_observer.mojom.h"
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
RenderFrameHost;
WebContents;
PrivateNetworkDeviceChooserController::PrivateNetworkDeviceChooserController(
content::RenderFrameHost* render_frame_host,
blink::mojom::PrivateNetworkDevicePtr device,
DoneCallback callback)
: … { … }
PrivateNetworkDeviceChooserController::
~PrivateNetworkDeviceChooserController() { … }
std::u16string PrivateNetworkDeviceChooserController::GetOkButtonLabel() const { … }
std::u16string PrivateNetworkDeviceChooserController::GetNoOptionsText() const { … }
std::pair<std::u16string, std::u16string>
PrivateNetworkDeviceChooserController::GetThrobberLabelAndTooltip() const { … }
size_t PrivateNetworkDeviceChooserController::NumOptions() const { … }
std::u16string PrivateNetworkDeviceChooserController::GetOption(
size_t index) const { … }
void PrivateNetworkDeviceChooserController::Select(
const std::vector<size_t>& indices) { … }
void PrivateNetworkDeviceChooserController::ReplaceDeviceForTesting(
blink::mojom::PrivateNetworkDevicePtr device) { … }
void PrivateNetworkDeviceChooserController::OpenHelpCenterUrl() const { … }
void PrivateNetworkDeviceChooserController::Cancel() { … }
void PrivateNetworkDeviceChooserController::Close() { … }
void PrivateNetworkDeviceChooserController::RunCallback(
bool permission_granted) { … }