blob: b308814e4c05a9acc5c354450a35a1970a21e1cf [file] [log] [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.support_lib_boundary;
import java.util.Set;
/** Boundary interface for ServiceWorkerWebSettings. */
public interface ServiceWorkerWebSettingsBoundaryInterface {
void setCacheMode(int mode);
int getCacheMode();
void setAllowContentAccess(boolean allow);
boolean getAllowContentAccess();
void setAllowFileAccess(boolean allow);
boolean getAllowFileAccess();
void setBlockNetworkLoads(boolean flag);
boolean getBlockNetworkLoads();
void setRequestedWithHeaderOriginAllowList(Set<String> allowedOriginRules);
Set<String> getRequestedWithHeaderOriginAllowList();
}