Example #1
0
 /** Configure Autoplay permission access setting for this site. */
 public void setAutoplayPermission(ContentSetting value) {
   if (mAutoplayExceptionInfo != null) {
     mAutoplayExceptionInfo.setContentSetting(value);
   }
 }
Example #2
0
 /** Configure Popup permission access setting for this site. */
 public void setPopupPermission(ContentSetting value) {
   if (mPopupException != null) {
     mPopupException.setContentSetting(value);
   }
 }
Example #3
0
 /** Returns what permission governs Autoplay access. */
 public ContentSetting getAutoplayPermission() {
   return mAutoplayExceptionInfo != null ? mAutoplayExceptionInfo.getContentSetting() : null;
 }
Example #4
0
 /** Configure JavaScript permission access setting for this site. */
 public void setJavaScriptPermission(ContentSetting value) {
   if (mJavaScriptException != null) {
     mJavaScriptException.setContentSetting(value);
   }
 }
Example #5
0
 /** Returns what permission governs Popup permission. */
 public ContentSetting getPopupPermission() {
   if (mPopupException != null) return mPopupException.getContentSetting();
   return null;
 }
Example #6
0
 /** Returns what permission governs JavaScript access. */
 public ContentSetting getJavaScriptPermission() {
   return mJavaScriptException != null ? mJavaScriptException.getContentSetting() : null;
 }
Example #7
0
 /** Sets the permission that govers cookie preferences for this site. */
 public void setCookiePermission(ContentSetting value) {
   if (mCookieException != null) {
     mCookieException.setContentSetting(value);
   }
 }
Example #8
0
 /** Gets the permission that governs cookie preferences. */
 public ContentSetting getCookiePermission() {
   return mCookieException != null ? mCookieException.getContentSetting() : null;
 }
Example #9
0
 /** Configures the background sync setting for this site. */
 public void setBackgroundSyncPermission(ContentSetting value) {
   if (mBackgroundSyncExceptionInfo != null) {
     mBackgroundSyncExceptionInfo.setContentSetting(value);
   }
 }
Example #10
0
 /** @return what permission governs background sync. */
 public ContentSetting getBackgroundSyncPermission() {
   return mBackgroundSyncExceptionInfo != null
       ? mBackgroundSyncExceptionInfo.getContentSetting()
       : null;
 }