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 #include "base/logging.h" | |
8 | |
9 namespace multi_process_notification { | |
10 | |
11 bool Post(const std::string& name, Domain domain) { | |
12 // TODO(dmaclach): Implement | |
13 NOTIMPLEMENTED(); | |
14 return false; | |
15 } | |
16 | |
17 class ListenerImpl { | |
18 public: | |
19 ListenerImpl(const std::string& name, | |
20 Domain domain, | |
21 Listener::Delegate* delegate); | |
22 | |
23 bool Start(); | |
24 | |
25 private: | |
26 std::string name_; | |
27 Domain domain_; | |
28 Listener::Delegate* delegate_; | |
29 | |
30 DISALLOW_COPY_AND_ASSIGN(ListenerImpl); | |
31 }; | |
32 | |
33 ListenerImpl::ListenerImpl(const std::string& name, | |
34 Domain domain, | |
35 Listener::Delegate* delegate) | |
36 : name_(name), domain_(domain), delegate_(delegate) { | |
37 } | |
38 | |
39 bool ListenerImpl::Start() { | |
40 // TODO(dmaclach): Implement | |
41 NOTIMPLEMENTED(); | |
42 return false; | |
43 } | |
44 | |
45 Listener::Listener(const std::string& name, | |
46 Domain domain, | |
47 Listener::Delegate* delegate) | |
48 : impl_(new ListenerImpl(name, domain, delegate)) { | |
49 } | |
50 | |
51 Listener::~Listener() { | |
52 } | |
53 | |
54 bool Listener::Start() { | |
55 return impl_->Start(); | |
56 } | |
57 | |
58 } // namespace multi_process_notification | |
OLD | NEW |