1 // Copyright 2015 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.
5 #ifndef CHROME_BROWSER_NET_NET_ERROR_DIAGNOSTICS_DIALOG_H_
6 #define CHROME_BROWSER_NET_NET_ERROR_DIAGNOSTICS_DIALOG_H_
14 // Returns true if the platform has a supported tool for diagnosing network
15 // errors encountered when requesting URLs.
16 bool CanShowNetworkDiagnosticsDialog();
18 // Shows a dialog for investigating an error received when requesting
19 // |failed_url|. May only be called when CanShowNetworkDiagnosticsDialog()
20 // returns true. The caller is responsible for sanitizing the url.
21 void ShowNetworkDiagnosticsDialog(content::WebContents
* web_contents
,
22 const std::string
& failed_url
);
24 #endif // CHROME_BROWSER_NET_NET_ERROR_DIAGNOSTICS_DIALOG_H_