summaryrefslogtreecommitdiffstats
path: root/chrome/browser/multi_process_notification_linux.cc
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-14 05:36:25 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-14 05:36:25 +0000
commit502b937c355c991645a3b88bf59d678862b7b8ff (patch)
treee47ac89de6e31c38d32865bb936a2392d619e49f /chrome/browser/multi_process_notification_linux.cc
parent1b0d7c5bf0c166886b842c0044bb3192a751d212 (diff)
downloadchromium_src-502b937c355c991645a3b88bf59d678862b7b8ff.zip
chromium_src-502b937c355c991645a3b88bf59d678862b7b8ff.tar.gz
chromium_src-502b937c355c991645a3b88bf59d678862b7b8ff.tar.bz2
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 Review URL: http://codereview.chromium.org/5970015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71418 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/multi_process_notification_linux.cc')
-rw-r--r--chrome/browser/multi_process_notification_linux.cc58
1 files changed, 58 insertions, 0 deletions
diff --git a/chrome/browser/multi_process_notification_linux.cc b/chrome/browser/multi_process_notification_linux.cc
new file mode 100644
index 0000000..6d1fb12
--- /dev/null
+++ b/chrome/browser/multi_process_notification_linux.cc
@@ -0,0 +1,58 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/multi_process_notification.h"
+
+#include "base/logging.h"
+
+namespace multi_process_notification {
+
+bool Post(const std::string& name, Domain domain) {
+ // TODO(dmaclach): Implement
+ NOTIMPLEMENTED();
+ return false;
+}
+
+class ListenerImpl {
+ public:
+ ListenerImpl(const std::string& name,
+ Domain domain,
+ Listener::Delegate* delegate);
+
+ bool Start();
+
+ private:
+ std::string name_;
+ Domain domain_;
+ Listener::Delegate* delegate_;
+
+ DISALLOW_COPY_AND_ASSIGN(ListenerImpl);
+};
+
+ListenerImpl::ListenerImpl(const std::string& name,
+ Domain domain,
+ Listener::Delegate* delegate)
+ : name_(name), domain_(domain), delegate_(delegate) {
+}
+
+bool ListenerImpl::Start() {
+ // TODO(dmaclach): Implement
+ NOTIMPLEMENTED();
+ return false;
+}
+
+Listener::Listener(const std::string& name,
+ Domain domain,
+ Listener::Delegate* delegate)
+ : impl_(new ListenerImpl(name, domain, delegate)) {
+}
+
+Listener::~Listener() {
+}
+
+bool Listener::Start() {
+ return impl_->Start();
+}
+
+} // namespace multi_process_notification