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

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

Issue 5970015: Add multi-process notification class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed up bad tabs 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/browser/multi_process_notification.h"
6
7 #include "base/task.h"
8
9 namespace multi_process_notification {
10
11 Listener::Delegate::~Delegate() {
12 }
13
14 void Listener::Delegate::OnListenerStarted(
15 const std::string& name, Domain domain, bool success) {
16 }
17
18 Listener::ListenerStartedTask::ListenerStartedTask(const std::string& name,
19 Domain domain, Listener::Delegate* delegate, bool success)
20 : name_(name), domain_(domain), delegate_(delegate), success_(success) {
21 }
22
23 Listener::ListenerStartedTask::~ListenerStartedTask() {
24 }
25
26 void Listener::ListenerStartedTask::Run() {
27 delegate_->OnListenerStarted(name_, domain_, success_);
28 }
29
30 Listener::NotificationReceivedTask::NotificationReceivedTask(
31 const std::string& name, Domain domain, Listener::Delegate* delegate)
32 : name_(name), domain_(domain), delegate_(delegate) {
33 }
34
35 Listener::NotificationReceivedTask::~NotificationReceivedTask() {
36 }
37
38 void Listener::NotificationReceivedTask::Run() {
39 delegate_->OnNotificationReceived(name_, domain_);
40 }
41
42 } // namespace multi_process_notification
OLDNEW
« no previous file with comments | « chrome/browser/multi_process_notification.h ('k') | chrome/browser/multi_process_notification_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698