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

Issue 847203004: Allow child thread to install filters prior to channel connection. (Closed)

Created:
5 years, 11 months ago by alexst (slow to review)
Modified:
5 years, 11 months ago
Reviewers:
piman
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Currently child thread creates and initializes the channel before adding any message filters. Since filters are added from main thread via PostTask to IO thread, it results in a race condition between messages being received and filters getting added. It is possible to miss messages if the filter is not installed in time. This change breaks up channel initialization into two parts, creation without connection, which allows us to add all the start up filters before messages start getting received and connection. It also adds an option for the subclasses of child thread to install additional filters prior to the connection. BUG= Committed: https://crrev.com/6f9311d4b8d822280a37d73f30c1ed141e5ecac7 Cr-Commit-Position: refs/heads/master@{#312141}

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -22 lines) Patch
M content/child/child_thread.h View 3 chunks +11 lines, -4 lines 0 comments Download
M content/child/child_thread.cc View 4 chunks +29 lines, -18 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
alexst (slow to review)
5 years, 11 months ago (2015-01-15 16:08:25 UTC) #3
piman
LGTM, this seems reasonable. I'm not sure why we haven't run into this in, say, ...
5 years, 11 months ago (2015-01-15 23:35:11 UTC) #4
alexst (slow to review)
On 2015/01/15 23:35:11, piman (Very slow to review) wrote: > LGTM, this seems reasonable. I'm ...
5 years, 11 months ago (2015-01-19 19:23:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/847203004/20001
5 years, 11 months ago (2015-01-19 19:24:52 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:20001)
5 years, 11 months ago (2015-01-19 20:33:26 UTC) #8
commit-bot: I haz the power
5 years, 11 months ago (2015-01-19 20:35:00 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/6f9311d4b8d822280a37d73f30c1ed141e5ecac7
Cr-Commit-Position: refs/heads/master@{#312141}

Powered by Google App Engine
This is Rietveld 408576698