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

Unified Diff: chrome/browser/multi_process_notification_win.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/multi_process_notification_unittest.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/multi_process_notification_win.cc
diff --git a/chrome/browser/multi_process_notification_win.cc b/chrome/browser/multi_process_notification_win.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6d1fb12db652d861aeab873f4b7efe2a6e98f241
--- /dev/null
+++ b/chrome/browser/multi_process_notification_win.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
« no previous file with comments | « chrome/browser/multi_process_notification_unittest.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698