// 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.
package org.chromium.chrome.browser.preferences.website;
/**
* Microphone information for a given origin.
*/
public class MicrophoneInfo extends PermissionInfo {
public MicrophoneInfo(String origin, String embedder, boolean isIncognito) {
super(origin, embedder, isIncognito);
}
protected int getNativePreferenceValue(String origin, String embedder, boolean isIncognito) {
return WebsitePreferenceBridge.nativeGetMicrophoneSettingForOrigin(
origin, embedder, isIncognito);
}
protected void setNativePreferenceValue(
String origin, String embedder, ContentSetting value, boolean isIncognito) {
WebsitePreferenceBridge.nativeSetMicrophoneSettingForOrigin(
origin, value.toInt(), isIncognito);
}
}