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

Unified Diff: ipc/attachment_broker.cc

Issue 1420763002: ipc: Move methods into AttachmentBroker interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: ipc/attachment_broker.cc
diff --git a/ipc/attachment_broker.cc b/ipc/attachment_broker.cc
index dac046b453a00edb8d2dbb555996fe29229bb3cb..ba1a6cb4eff5237b3d6374720e360b9fc3da7192 100644
--- a/ipc/attachment_broker.cc
+++ b/ipc/attachment_broker.cc
@@ -25,7 +25,12 @@ AttachmentBroker* AttachmentBroker::GetGlobal() {
return g_attachment_broker;
}
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+AttachmentBroker::AttachmentBroker() : port_provider_(nullptr) {}
+#else
AttachmentBroker::AttachmentBroker() {}
+#endif // defined(OS_MACOSX) && !defined(OS_IOS)
+
AttachmentBroker::~AttachmentBroker() {}
bool AttachmentBroker::GetAttachmentWithId(
@@ -54,6 +59,14 @@ void AttachmentBroker::RemoveObserver(AttachmentBroker::Observer* observer) {
observers_.erase(it);
}
+void AttachmentBroker::RegisterCommunicationChannel(Endpoint* endpoint) {
+ NOTREACHED();
+}
+
+void AttachmentBroker::DeregisterCommunicationChannel(Endpoint* endpoint) {
+ NOTREACHED();
+}
+
void AttachmentBroker::HandleReceivedAttachment(
const scoped_refptr<BrokerableAttachment>& attachment) {
attachments_.push_back(attachment);

Powered by Google App Engine
This is Rietveld 408576698