org.chromium.chrome.browser.preferences.website.ContentSettingException Java Examples

The following examples show how to use org.chromium.chrome.browser.preferences.website.ContentSettingException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PrefServiceBridge.java    From delion with Apache License 2.0 5 votes vote down vote up
@CalledByNative
private static void addContentSettingExceptionToList(
        ArrayList<ContentSettingException> list,
        int contentSettingsType,
        String pattern,
        int contentSetting,
        String source) {
    ContentSettingException exception = new ContentSettingException(
            contentSettingsType, pattern, ContentSetting.fromInt(contentSetting), source);
    list.add(exception);
}
 
Example #2
Source File: PrefServiceBridge.java    From AndroidChromium with Apache License 2.0 5 votes vote down vote up
@CalledByNative
private static void addContentSettingExceptionToList(
        ArrayList<ContentSettingException> list,
        int contentSettingsType,
        String pattern,
        int contentSetting,
        String source) {
    ContentSettingException exception = new ContentSettingException(
            contentSettingsType, pattern, ContentSetting.fromInt(contentSetting), source);
    list.add(exception);
}
 
Example #3
Source File: PrefServiceBridge.java    From 365browser with Apache License 2.0 5 votes vote down vote up
@CalledByNative
private static void addContentSettingExceptionToList(
        ArrayList<ContentSettingException> list,
        int contentSettingsType,
        String pattern,
        int contentSetting,
        String source) {
    ContentSettingException exception = new ContentSettingException(
            contentSettingsType, pattern, ContentSetting.fromInt(contentSetting), source);
    list.add(exception);
}
 
Example #4
Source File: PrefServiceBridge.java    From delion with Apache License 2.0 4 votes vote down vote up
/**
 * Returns all the currently saved exceptions for a given content settings type.
 * @param contentSettingsType The type to fetch exceptions for.
 */
public List<ContentSettingException> getContentSettingsExceptions(int contentSettingsType) {
    List<ContentSettingException> list = new ArrayList<ContentSettingException>();
    nativeGetContentSettingsExceptions(contentSettingsType, list);
    return list;
}
 
Example #5
Source File: PrefServiceBridge.java    From delion with Apache License 2.0 4 votes vote down vote up
private native void nativeGetContentSettingsExceptions(
int contentSettingsType, List<ContentSettingException> list);
 
Example #6
Source File: PrefServiceBridge.java    From AndroidChromium with Apache License 2.0 4 votes vote down vote up
/**
 * Returns all the currently saved exceptions for a given content settings type.
 * @param contentSettingsType The type to fetch exceptions for.
 */
public List<ContentSettingException> getContentSettingsExceptions(int contentSettingsType) {
    List<ContentSettingException> list = new ArrayList<ContentSettingException>();
    nativeGetContentSettingsExceptions(contentSettingsType, list);
    return list;
}
 
Example #7
Source File: PrefServiceBridge.java    From AndroidChromium with Apache License 2.0 4 votes vote down vote up
private native void nativeGetContentSettingsExceptions(
int contentSettingsType, List<ContentSettingException> list);
 
Example #8
Source File: PrefServiceBridge.java    From 365browser with Apache License 2.0 4 votes vote down vote up
/**
 * Returns all the currently saved exceptions for a given content settings type.
 * @param contentSettingsType The type to fetch exceptions for.
 */
public List<ContentSettingException> getContentSettingsExceptions(int contentSettingsType) {
    List<ContentSettingException> list = new ArrayList<ContentSettingException>();
    nativeGetContentSettingsExceptions(contentSettingsType, list);
    return list;
}
 
Example #9
Source File: PrefServiceBridge.java    From 365browser with Apache License 2.0 4 votes vote down vote up
private native void nativeGetContentSettingsExceptions(
int contentSettingsType, List<ContentSettingException> list);