Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2983)

Issue 19798012: Remove security_origin member from content::Stream. (Closed)

Created:
7 years, 5 months ago by tyoshino (SeeGerritForStatus)
Modified:
7 years, 5 months ago
Reviewers:
kinuko, Charlie Reis, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Charlie Reis
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213830

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : creis's comment #

Patch Set 4 : Fixed unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -47 lines) Patch
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M content/browser/loader/stream_resource_handler.h View 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/loader/stream_resource_handler.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M content/browser/streams/stream.h View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/streams/stream.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M content/browser/streams/stream_unittest.cc View 1 2 3 9 chunks +9 lines, -9 lines 0 comments Download
M content/browser/streams/stream_url_request_job_unittest.cc View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.h View 1 chunk +12 lines, -10 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
tyoshino (SeeGerritForStatus)
7 years, 5 months ago (2013-07-24 08:26:18 UTC) #1
kinuko
Looks reasonable, lgtm
7 years, 5 months ago (2013-07-24 09:01:32 UTC) #2
Tom Sepez
On 2013/07/24 09:01:32, kinuko wrote: > Looks reasonable, lgtm OK for now, adding creis@ as ...
7 years, 5 months ago (2013-07-24 16:49:50 UTC) #3
jam
did you mean to add creis instead of me as a reviewer? lgtm either way
7 years, 5 months ago (2013-07-24 18:08:21 UTC) #4
Charlie Reis
LGTM. Thanks for the heads up, Tom. We'll definitely revisit this when renderer processes can ...
7 years, 5 months ago (2013-07-24 20:33:20 UTC) #5
tyoshino (SeeGerritForStatus)
thanks reviewers https://codereview.chromium.org/19798012/diff/2001/content/browser/streams/stream.h File content/browser/streams/stream.h (right): https://codereview.chromium.org/19798012/diff/2001/content/browser/streams/stream.h#newcode41 content/browser/streams/stream.h:41: // Creates a stream. On 2013/07/24 20:33:21, ...
7 years, 5 months ago (2013-07-25 03:27:59 UTC) #6
tyoshino (SeeGerritForStatus)
Forgot to fix unittests. It's just removing GURL() from parameters. Done
7 years, 5 months ago (2013-07-25 03:53:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoshino@chromium.org/19798012/15001
7 years, 5 months ago (2013-07-25 03:56:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoshino@chromium.org/19798012/15001
7 years, 5 months ago (2013-07-25 13:34:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoshino@chromium.org/19798012/15001
7 years, 5 months ago (2013-07-26 01:21:26 UTC) #10
commit-bot: I haz the power
7 years, 5 months ago (2013-07-26 10:54:38 UTC) #11
Message was sent while issue was closed.
Change committed as 213830

Powered by Google App Engine
This is Rietveld 408576698