blob: 940556f4cbd34996a32af2f1587a1fef1dbbcdc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
// 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(MessageLoop* io_loop_to_listen_on);
std::string name() const { return name_; }
Domain domain() const { return domain_; }
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(MessageLoop* io_loop_to_listen_on) {
// 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(MessageLoop* io_loop_to_listen_on) {
return impl_->Start(io_loop_to_listen_on);
}
std::string Listener::name() const {
return impl_->name();
}
Domain Listener::domain() const {
return impl_->domain();
}
} // namespace multi_process_notification
|