net_helpers.h 875 B

123456789101112131415161718192021222324252627
  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. #ifndef ANDROID_WEBVIEW_BROWSER_NETWORK_SERVICE_NET_HELPERS_H_
  5. #define ANDROID_WEBVIEW_BROWSER_NETWORK_SERVICE_NET_HELPERS_H_
  6. class GURL;
  7. namespace android_webview {
  8. class AwContentsIoThreadClient;
  9. // Returns the updated request's |load_flags| based on the settings.
  10. int UpdateLoadFlags(int load_flags, AwContentsIoThreadClient* client);
  11. // Returns true if the given URL should be aborted with
  12. // net::ERR_ACCESS_DENIED.
  13. bool ShouldBlockURL(const GURL& url, AwContentsIoThreadClient* client);
  14. // Determines the desired size for WebView's on-disk HttpCache, measured in
  15. // Bytes.
  16. int GetHttpCacheSize();
  17. } // namespace android_webview
  18. #endif // ANDROID_WEBVIEW_BROWSER_NETWORK_SERVICE_NET_HELPERS_H_