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

Side by Side Diff: chrome/common/multi_process_notification.cc

Issue 5970015: Add multi-process notification class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing file Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/common/multi_process_notification.h"
6
7 namespace multi_process_notification {
8
9 PerformTaskOnNotification::PerformTaskOnNotification(Task* task) : task_(task) {
10 }
11
12 PerformTaskOnNotification::~PerformTaskOnNotification() {
13 }
14
15 void PerformTaskOnNotification::OnNotificationReceived(
16 const std::string& name) {
17 task_->Run();
18 task_.reset();
19 }
20
21 bool PerformTaskOnNotification::WasNotificationCalled() {
22 return task_.get() == NULL;
23 }
24
25 } // namespace multi_process_notification
26
Mark Mentovai 2011/01/06 17:59:09 Nuke the blank line at EOF.
dmac 2011/01/06 18:22:37 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698