summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_stream.h
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-08 18:05:57 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-08 18:05:57 +0000
commita7a265efd24072f9dc7b5f737ec84d5ae0553cd6 (patch)
tree62180201efd7568a6db59bc3b8c06caa260625d7 /net/spdy/spdy_stream.h
parentc1784804a5634728d147baea37257a06ab5cc031 (diff)
downloadchromium_src-a7a265efd24072f9dc7b5f737ec84d5ae0553cd6.zip
chromium_src-a7a265efd24072f9dc7b5f737ec84d5ae0553cd6.tar.gz
chromium_src-a7a265efd24072f9dc7b5f737ec84d5ae0553cd6.tar.bz2
Add origin checking for server pushed resources.
BUG=64108 TEST=PushedStream, ServerPushCrossOriginCorrectness Review URL: http://codereview.chromium.org/5516012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68605 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_stream.h')
-rw-r--r--net/spdy/spdy_stream.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/spdy/spdy_stream.h b/net/spdy/spdy_stream.h
index d3dd242..9a055c2 100644
--- a/net/spdy/spdy_stream.h
+++ b/net/spdy/spdy_stream.h
@@ -13,6 +13,7 @@
#include "base/linked_ptr.h"
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
+#include "googleurl/src/gurl.h"
#include "net/base/bandwidth_metrics.h"
#include "net/base/io_buffer.h"
#include "net/base/net_log.h"
@@ -214,6 +215,13 @@ class SpdyStream : public base::RefCounted<SpdyStream> {
int response_status() const { return response_status_; }
+ // Returns true if the URL for this stream is known.
+ bool HasUrl() const;
+
+ // Get the URL associated with this stream. Only valid when has_url() is
+ // true.
+ GURL GetUrl() const;
+
private:
enum State {
STATE_NONE,