summaryrefslogtreecommitdiffstats
path: root/net/base/load_flags_list.h
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 22:37:23 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 22:37:23 +0000
commitf4ef861ba773e66d1c6e7e023a38db32afdd531d (patch)
tree6ae53ffb969fa9ddf39131deb79c15b2ae8fa592 /net/base/load_flags_list.h
parent175aa689f7f9b705ee2c6eebb29aca1c93c540d5 (diff)
downloadchromium_src-f4ef861ba773e66d1c6e7e023a38db32afdd531d.zip
chromium_src-f4ef861ba773e66d1c6e7e023a38db32afdd531d.tar.gz
chromium_src-f4ef861ba773e66d1c6e7e023a38db32afdd531d.tar.bz2
Support both preconnection, and pre-resolution for subresources
With this change, both preconnection and preresolution are enabled when the --enable-preconnection flag is turned on. I'm expecting to enable this feature by default soon, so as to better tune the parameters. BUG=42694 r=mbelshe Review URL: http://codereview.chromium.org/3032014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54044 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/load_flags_list.h')
-rw-r--r--net/base/load_flags_list.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/base/load_flags_list.h b/net/base/load_flags_list.h
index ff5e609..1125a3e 100644
--- a/net/base/load_flags_list.h
+++ b/net/base/load_flags_list.h
@@ -82,3 +82,12 @@ LOAD_FLAG(DO_NOT_SEND_AUTH_DATA, 1 << 18)
// This should only be used for testing (set by HttpNetworkTransaction).
LOAD_FLAG(IGNORE_ALL_CERT_ERRORS, 1 << 19)
+
+// Indicate that this is a top level frame, so that we don't assume it is a
+// subresource and speculatively pre-connect or pre-resolve when a referring
+// page is loaded.
+LOAD_FLAG(MAIN_FRAME, 1 << 20)
+
+// Indicate that this is a sub frame, and hence it might have subresources that
+// should be speculatively resolved, or even speculatively preconnected.
+LOAD_FLAG(SUB_FRAME, 1 << 21)