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