From a7a265efd24072f9dc7b5f737ec84d5ae0553cd6 Mon Sep 17 00:00:00 2001 From: "mbelshe@chromium.org" Date: Wed, 8 Dec 2010 18:05:57 +0000 Subject: 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 --- net/spdy/spdy_stream.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'net/spdy/spdy_stream.h') 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 { 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, -- cgit v1.1