blob: edb41281ffe52ac135fc0fbec409c1e62497824a [file] [log] [blame]
// Copyright 2017 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.
module chrome.mojom;
// Interface for retrieving WiFi credentials for WiFi networks.
// Must be run in a non sandboxed process with elevated privileges.
interface WiFiCredentialsGetter {
const string kWiFiTestNetwork = "chrome://test-get-wifi-credentials";
// OS_WIN: Get plain-text WiFi credentials from the system (requires UAC
// privilege elevation). Returns |success| false if an error occurred or
// |success| true and the result in |key_data|.
GetWiFiCredentials(string ssid) => (bool success, string key_data);
};