Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / net / net_error_diagnostics_dialog.h
blob2d3089a5cef0b9bc89bdc64f3068b324197cfb38
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_
8 #include <string>
10 namespace content {
11 class WebContents;
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_