| Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java
|
| index 3e18aeacdf3677cf1203f09f3cd5950ea90114b2..df376b27c439f6e3489deacfba999d65115f36da 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/Website.java
|
| @@ -37,6 +37,7 @@ public class Website implements Serializable {
|
| private MidiInfo mMidiInfo;
|
| private NotificationInfo mNotificationInfo;
|
| private ContentSettingException mPopupException;
|
| + private ContentSettingException mSubresourceFilterException;
|
| private ProtectedMediaIdentifierInfo mProtectedMediaIdentifierInfo;
|
| private final List<StorageInfo> mStorageInfo = new ArrayList<StorageInfo>();
|
| private int mStorageInfoCallbacksLeft;
|
| @@ -347,6 +348,39 @@ public class Website implements Serializable {
|
| }
|
|
|
| /**
|
| + * Sets the Subresource Filter exception info for this Website.
|
| + */
|
| + public void setSubresourceFilterException(ContentSettingException exception) {
|
| + mSubresourceFilterException = exception;
|
| + }
|
| +
|
| + /**
|
| + * Returns the Subresource Filter exception info for this Website.
|
| + */
|
| + public ContentSettingException getSubresourceFilterException() {
|
| + return mSubresourceFilterException;
|
| + }
|
| +
|
| + /**
|
| + * Returns what permission governs the Subresource Filter.
|
| + */
|
| + public ContentSetting getSubresourceFilterPermission() {
|
| + if (mSubresourceFilterException != null) {
|
| + return mSubresourceFilterException.getContentSetting();
|
| + }
|
| + return null;
|
| + }
|
| +
|
| + /**
|
| + * Sets the Subresource Filter permission.
|
| + */
|
| + public void setSubresourceFilterPermission(ContentSetting value) {
|
| + if (mSubresourceFilterException != null) {
|
| + mSubresourceFilterException.setContentSetting(value);
|
| + }
|
| + }
|
| +
|
| + /**
|
| * Sets protected media identifier access permission information class.
|
| */
|
| public void setProtectedMediaIdentifierInfo(ProtectedMediaIdentifierInfo info) {
|
|
|