1// Copyright 2016 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. 4 5module chrome.mojom; 6 7import "url/mojom/url.mojom"; 8 9interface NetworkDiagnostics { 10 RunNetworkDiagnostics(url.mojom.Url failed_url); 11}; 12 13interface NetworkDiagnosticsClient { 14 // Tells the renderer whether or not there is a local diagnostics service that 15 // can be run via calls to NetworkDiagnostics::RunNetworkDiagnostics. 16 SetCanShowNetworkDiagnosticsDialog(bool can_show); 17 18 // Provides the renderer with the results of the browser's investigation into 19 // why a recent main frame load failed (currently, just DNS probe result). 20 // NetErrorHelper will receive this mesage and replace or update the error 21 // page with more specific troubleshooting suggestions. 22 DNSProbeStatus(int32 status); 23}; 24