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

Issue 10536200: Manage IsolatedContext with reference counts (Closed)

Created:
8 years, 6 months ago by kinuko
Modified:
8 years, 6 months ago
Reviewers:
benwells, jam, tzik
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, kinuko+watch, jam, jochen+watch-content_chromium.org, ericu
Visibility:
Public.

Description

Manage IsolatedContext with reference counts to make it possible to be shared by multiple children. This patch itself should have no side effect. BUG=none TEST=existing tests should pass Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=144115

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : re-adding Revoke #

Patch Set 4 : #

Patch Set 5 : win test fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -11 lines) Patch
M content/browser/child_process_security_policy_impl.cc View 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M webkit/fileapi/isolated_context.h View 1 2 3 3 chunks +20 lines, -0 lines 0 comments Download
M webkit/fileapi/isolated_context.cc View 1 2 3 4 3 chunks +31 lines, -7 lines 1 comment Download

Messages

Total messages: 10 (0 generated)
kinuko
8 years, 6 months ago (2012-06-21 08:13:50 UTC) #1
tzik
lgtm http://codereview.chromium.org/10536200/diff/6/webkit/fileapi/isolated_context.cc File webkit/fileapi/isolated_context.cc (right): http://codereview.chromium.org/10536200/diff/6/webkit/fileapi/isolated_context.cc#newcode60 webkit/fileapi/isolated_context.cc:60: base::AutoLock locker(lock_); Could you add DCHECK(ref_counts_.find(filesystem_id) != ref_counts_.end());?
8 years, 6 months ago (2012-06-21 14:00:35 UTC) #2
kinuko
http://codereview.chromium.org/10536200/diff/6/webkit/fileapi/isolated_context.cc File webkit/fileapi/isolated_context.cc (right): http://codereview.chromium.org/10536200/diff/6/webkit/fileapi/isolated_context.cc#newcode60 webkit/fileapi/isolated_context.cc:60: base::AutoLock locker(lock_); On 2012/06/21 14:00:35, tzik wrote: > Could ...
8 years, 6 months ago (2012-06-22 04:53:30 UTC) #3
kinuko
Re-added RevokeIsolatedFileSystem and fixed DCHECKs. PTAL thanks! On 2012/06/22 04:53:30, kinuko wrote: > http://codereview.chromium.org/10536200/diff/6/webkit/fileapi/isolated_context.cc > ...
8 years, 6 months ago (2012-06-22 08:16:34 UTC) #4
kinuko
Fixed windows test breakage. Can you take another look? jam@, can you take a look ...
8 years, 6 months ago (2012-06-25 09:37:23 UTC) #5
tzik
lgtm http://codereview.chromium.org/10536200/diff/31001/webkit/fileapi/isolated_context.cc File webkit/fileapi/isolated_context.cc (right): http://codereview.chromium.org/10536200/diff/31001/webkit/fileapi/isolated_context.cc#newcode33 webkit/fileapi/isolated_context.cc:33: DCHECK(!iter->ReferencesParent() && iter->IsAbsolute()); As we chatted, platform_app_launcher seems ...
8 years, 6 months ago (2012-06-25 10:37:54 UTC) #6
kinuko
On 2012/06/25 10:37:54, tzik wrote: > lgtm > > http://codereview.chromium.org/10536200/diff/31001/webkit/fileapi/isolated_context.cc > File webkit/fileapi/isolated_context.cc (right): > ...
8 years, 6 months ago (2012-06-25 10:45:06 UTC) #7
jam
lgtm
8 years, 6 months ago (2012-06-25 15:14:41 UTC) #8
benwells
On 2012/06/25 10:45:06, kinuko wrote: > On 2012/06/25 10:37:54, tzik wrote: > > lgtm > ...
8 years, 6 months ago (2012-06-25 18:07:35 UTC) #9
kinuko
8 years, 6 months ago (2012-06-26 04:42:20 UTC) #10
On 2012/06/25 18:07:35, benwells wrote:
> On 2012/06/25 10:45:06, kinuko wrote:
> > On 2012/06/25 10:37:54, tzik wrote:
> > > lgtm
> > > 
> > >
> >
>
http://codereview.chromium.org/10536200/diff/31001/webkit/fileapi/isolated_co...
> > > File webkit/fileapi/isolated_context.cc (right):
> > > 
> > >
> >
>
http://codereview.chromium.org/10536200/diff/31001/webkit/fileapi/isolated_co...
> > > webkit/fileapi/isolated_context.cc:33: DCHECK(!iter->ReferencesParent() &&
> > > iter->IsAbsolute());
> > > As we chatted, platform_app_launcher seems to pass relative path to this.
> > > Could you add some comment or file a bug to it?
> > 
> > (+benwells)
> > 
> > Ben, does platform_app_launcher check if the given path is absolute or not? 
> > Currently both IsolatedContext and ChildProcessSecurityPolicy assume the
given
> > path is absolute. If it could be given a relative path I think we should fix
> it
> > asap.
> 
> crbug.com/134469 logged

Thx!

Powered by Google App Engine
This is Rietveld 408576698