blob: 2d3089a5cef0b9bc89bdc64f3068b324197cfb38 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
namespace content {
class WebContents;
// Returns true if the platform has a supported tool for diagnosing network
// errors encountered when requesting URLs.
bool CanShowNetworkDiagnosticsDialog();
// Shows a dialog for investigating an error received when requesting
// |failed_url|. May only be called when CanShowNetworkDiagnosticsDialog()
// returns true. The caller is responsible for sanitizing the url.
void ShowNetworkDiagnosticsDialog(content::WebContents* web_contents,
const std::string& failed_url);