diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-19 21:01:36 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-19 21:01:36 +0000 |
commit | 262eec8f3436504b5d6c9ea60fd2b9314b3cd495 (patch) | |
tree | 108e937f5e46b6828d62ca89c29446919002b1f6 /net/http/http_stream_base.h | |
parent | 821572b27b959ab6fa5457cb41562dd7f2c48ab2 (diff) | |
download | chromium_src-262eec8f3436504b5d6c9ea60fd2b9314b3cd495.zip chromium_src-262eec8f3436504b5d6c9ea60fd2b9314b3cd495.tar.gz chromium_src-262eec8f3436504b5d6c9ea60fd2b9314b3cd495.tar.bz2 |
[Net] Separate out priority field from HttpRequestInfo
This is in preparation for supporting reprioritization; HttpRequestInfo
is assumed to be an unchanging struct, so priority can't live in it
if it is something that can change.
Also add DEFAULT_PRIORITY value and replace some uses of LOWEST with it.
BUG=166689
Review URL: https://codereview.chromium.org/12833008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189099 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_stream_base.h')
-rw-r--r-- | net/http/http_stream_base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/http/http_stream_base.h b/net/http/http_stream_base.h index 06d0291..6dce6d2 100644 --- a/net/http/http_stream_base.h +++ b/net/http/http_stream_base.h @@ -16,6 +16,7 @@ #include "base/memory/scoped_ptr.h" #include "net/base/completion_callback.h" #include "net/base/net_export.h" +#include "net/base/request_priority.h" #include "net/base/upload_progress.h" namespace net { @@ -39,6 +40,7 @@ class NET_EXPORT_PRIVATE HttpStreamBase { // |request_info| must outlive the HttpStreamBase. // Returns a net error code, possibly ERR_IO_PENDING. virtual int InitializeStream(const HttpRequestInfo* request_info, + RequestPriority priority, const BoundNetLog& net_log, const CompletionCallback& callback) = 0; |