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

Issue 5970015: Add multi-process notification class. (Closed)

Created:
9 years, 11 months ago by dmac
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add multi-process notification class. This is a platform abstraction for a notification that can be sent between processes. Currently only implemented on Mac. Windows and Linux will be done in a future CL. BUG=NONE TEST=BUILD Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70629 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71418

Patch Set 1 #

Total comments: 42

Patch Set 2 : git status #

Patch Set 3 : Added missing file #

Total comments: 22

Patch Set 4 : Added domain to listener callback #

Patch Set 5 : Added documentation to domains #

Patch Set 6 : more comments added #

Patch Set 7 : Responded to Mark's comments #

Total comments: 1

Patch Set 8 : Fixed up mac side so that it works on 10.5 as well. #

Total comments: 22

Patch Set 9 : Turn off force leopard flag #

Patch Set 10 : Now receives notifications on the thread that calls Start on the listener #

Total comments: 8

Patch Set 11 : Disabled Leopard Thread on 10.6, added comment #

Patch Set 12 : fixed up with the end of mark's comments #

Patch Set 13 : small comment fix #

Patch Set 14 : moved to chrome/browser from chrome/common #

Patch Set 15 : Fixed up bad tabs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1170 lines, -0 lines) Patch
A chrome/browser/multi_process_notification.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +109 lines, -0 lines 0 comments Download
A chrome/browser/multi_process_notification.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/multi_process_notification_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/browser/multi_process_notification_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +545 lines, -0 lines 0 comments Download
A chrome/browser/multi_process_notification_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +352 lines, -0 lines 0 comments Download
A chrome/browser/multi_process_notification_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +58 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
dmac
If you could take a look, I'd appreciate it.
9 years, 11 months ago (2011-01-04 01:01:42 UTC) #1
Paweł Hajdan Jr.
Drive-by with minor test comments. Glad to see TestTimeouts being used. http://codereview.chromium.org/5970015/diff/1/chrome/common/multi_process_notification_unittest.cc File chrome/common/multi_process_notification_unittest.cc (right): ...
9 years, 11 months ago (2011-01-04 15:54:09 UTC) #2
Mark Mentovai
http://codereview.chromium.org/5970015/diff/1/chrome/common/multi_process_notification.h File chrome/common/multi_process_notification.h (right): http://codereview.chromium.org/5970015/diff/1/chrome/common/multi_process_notification.h#newcode19 chrome/common/multi_process_notification.h:19: // platform (so on MacOSX a "Happy" notification will ...
9 years, 11 months ago (2011-01-04 18:19:33 UTC) #3
dmac
Some significant changes here. Thanks for the comments. http://codereview.chromium.org/5970015/diff/1/chrome/common/multi_process_notification.h File chrome/common/multi_process_notification.h (right): http://codereview.chromium.org/5970015/diff/1/chrome/common/multi_process_notification.h#newcode19 chrome/common/multi_process_notification.h:19: // ...
9 years, 11 months ago (2011-01-06 06:06:03 UTC) #4
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM. Thank you.
9 years, 11 months ago (2011-01-06 12:39:51 UTC) #5
Mark Mentovai
Nice job. These comments are relatively minor. http://codereview.chromium.org/5970015/diff/11001/chrome/chrome_common.gypi File chrome/chrome_common.gypi (right): http://codereview.chromium.org/5970015/diff/11001/chrome/chrome_common.gypi#newcode1 chrome/chrome_common.gypi:1: # Copyright ...
9 years, 11 months ago (2011-01-06 17:59:09 UTC) #6
Mark Mentovai
Note that I reviewed set 3, which was current when I began reading, but I ...
9 years, 11 months ago (2011-01-06 18:00:28 UTC) #7
dmac
Thanks Mark. I hope you know that I have a dream that one day I ...
9 years, 11 months ago (2011-01-06 18:22:37 UTC) #8
Mark Mentovai
Great, LGTM. http://codereview.chromium.org/5970015/diff/28001/chrome/common/multi_process_notification_mac.mm File chrome/common/multi_process_notification_mac.mm (right): http://codereview.chromium.org/5970015/diff/28001/chrome/common/multi_process_notification_mac.mm#newcode40 chrome/common/multi_process_notification_mac.mm:40: domain_string = StringPrintf("user.uid.%u.%s.", Put a comment here ...
9 years, 11 months ago (2011-01-06 18:46:44 UTC) #9
dmac
Mark, can you take a look at the mac implementation now with 10.5 support?
9 years, 11 months ago (2011-01-12 21:57:24 UTC) #10
Mark Mentovai
The approach is good. http://codereview.chromium.org/5970015/diff/33001/chrome/common/multi_process_notification_mac.mm File chrome/common/multi_process_notification_mac.mm (right): http://codereview.chromium.org/5970015/diff/33001/chrome/common/multi_process_notification_mac.mm#newcode31 chrome/common/multi_process_notification_mac.mm:31: #define USE_LEOPARD_SWITCHBOARD_THREAD 1 You don’t ...
9 years, 11 months ago (2011-01-12 22:42:35 UTC) #11
dmac
On 2011/01/12 22:42:35, Mark Mentovai wrote: I think all comments above have been addressed, and ...
9 years, 11 months ago (2011-01-13 22:51:15 UTC) #12
Mark Mentovai
I think this is LGTM pending the results of your “is -1 an invalid token ...
9 years, 11 months ago (2011-01-13 23:10:34 UTC) #13
dmac
Changed from depending on tokens to fds to alleviate concerns. http://codereview.chromium.org/5970015/diff/46001/chrome/common/multi_process_notification_mac.mm File chrome/common/multi_process_notification_mac.mm (right): http://codereview.chromium.org/5970015/diff/46001/chrome/common/multi_process_notification_mac.mm#newcode35 ...
9 years, 11 months ago (2011-01-13 23:17:43 UTC) #14
Mark Mentovai
LGTM
9 years, 11 months ago (2011-01-13 23:23:27 UTC) #15
jam
sorry for the late drive-by, but I just saw this code. What will this be ...
9 years, 10 months ago (2011-01-31 20:37:27 UTC) #16
dmaclach1
Turns out that it isn't going to be used, and is going to be removed ...
9 years, 10 months ago (2011-02-01 22:43:32 UTC) #17
jam
just a friendly ping, can this be removed if it's not needed? I'm trying to ...
9 years, 10 months ago (2011-02-15 21:32:13 UTC) #18
dmaclach1
I'll be removing it in the next couple of days. Cheers, Dave On Tue, Feb ...
9 years, 10 months ago (2011-02-15 22:04:51 UTC) #19
jam
9 years, 10 months ago (2011-02-15 22:12:46 UTC) #20
great, thanks!

On Tue, Feb 15, 2011 at 2:04 PM, David Maclachlan <dmaclach@google.com>wrote:

> I'll be removing it in the next couple of days.
>
> Cheers,
> Dave
>
> On Tue, Feb 15, 2011 at 1:32 PM, John Abd-El-Malek <jam@chromium.org>
> wrote:
> > just a friendly ping, can this be removed if it's not needed?  I'm trying
> to
> > scope out what needs to stay in src\chrome and what will move to
> > src\contents, so the less code that's there the easier the task is
> >
> > On Tue, Feb 1, 2011 at 2:43 PM, David Maclachlan <dmaclach@google.com>
> > wrote:
> >>
> >> Turns out that it isn't going to be used, and is going to be removed
> >> very shortly.
> >>
> >> On Mon, Jan 31, 2011 at 12:37 PM,  <jam@chromium.org> wrote:
> >> > sorry for the late drive-by, but I just saw this code.  What will this
> >> > be
> >> > used
> >> > for?
> >> >
> >> > http://codereview.chromium.org/5970015/
> >> >
> >
> >
>

Powered by Google App Engine
This is Rietveld 408576698