1 // Copyright 2018 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package org.chromium.support_lib_boundary; 6 7 /** 8 * Boundary interface for ServiceWorkerWebSettings. 9 */ 10 public interface ServiceWorkerWebSettingsBoundaryInterface { 11 void setCacheMode(int mode); 12 13 int getCacheMode(); 14 15 void setAllowContentAccess(boolean allow); 16 17 boolean getAllowContentAccess(); 18 19 void setAllowFileAccess(boolean allow); 20 21 boolean getAllowFileAccess(); 22 23 void setBlockNetworkLoads(boolean flag); 24 25 boolean getBlockNetworkLoads(); 26 } 27