summaryrefslogtreecommitdiffstats
path: root/content/browser/loader/stream_resource_handler.cc
diff options
context:
space:
mode:
authortyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-26 10:54:37 +0000
committertyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-26 10:54:37 +0000
commit749b68b70f15c5643b8bbc622c8dc5d5870687bb (patch)
tree55c0bfabb20cc2da6bd8d64deff363fbd426c3e9 /content/browser/loader/stream_resource_handler.cc
parent2e29e223ca953f7d9600f1761d4971fd29a9892f (diff)
downloadchromium_src-749b68b70f15c5643b8bbc622c8dc5d5870687bb.zip
chromium_src-749b68b70f15c5643b8bbc622c8dc5d5870687bb.tar.gz
chromium_src-749b68b70f15c5643b8bbc622c8dc5d5870687bb.tar.bz2
Remove security_origin member from content::Stream.
Stream::security_origin_ is not used at all for now. There's no established code in Chromium to do origin checking. Security of Blob/Stream resource loading now depends on origin checking mechanism in Blink. Keeping this variable without having any checking mechanism confuses developers. Remove it until we build origin checking code in Chromium. Also, rename security_origin to origin, as it's nothing but an origin URL. BUG=263342 Review URL: https://chromiumcodereview.appspot.com/19798012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/loader/stream_resource_handler.cc')
-rw-r--r--content/browser/loader/stream_resource_handler.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/content/browser/loader/stream_resource_handler.cc b/content/browser/loader/stream_resource_handler.cc
index c832afa..1e2acc8 100644
--- a/content/browser/loader/stream_resource_handler.cc
+++ b/content/browser/loader/stream_resource_handler.cc
@@ -18,13 +18,14 @@ namespace content {
StreamResourceHandler::StreamResourceHandler(
net::URLRequest* request,
StreamRegistry* registry,
- const GURL& security_origin)
+ const GURL& origin)
: request_(request),
read_buffer_(NULL) {
- // TODO(zork): Find a way to share this with the blob URL creation in WebKit.
+ // TODO(tyoshino): Find a way to share this with the blob URL creation in
+ // WebKit.
GURL url(std::string(chrome::kBlobScheme) + ":" +
- security_origin.spec() + base::GenerateGUID());
- stream_ = new Stream(registry, this, security_origin, url);
+ origin.spec() + base::GenerateGUID());
+ stream_ = new Stream(registry, this, url);
}
StreamResourceHandler::~StreamResourceHandler() {
@@ -115,4 +116,3 @@ void StreamResourceHandler::OnClose(Stream* stream) {
}
} // namespace content
-