Chromium Code Reviews| OLD | NEW |
|---|---|
| (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.
| |
| OLD | NEW |