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

Unified Diff: ipc/brokerable_attachment.cc

Issue 1317093007: ipc: Make a new class PlaceholderBrokerableAttachment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More rebase errors. Created 5 years, 3 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 | « ipc/brokerable_attachment.h ('k') | ipc/handle_attachment_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/brokerable_attachment.cc
diff --git a/ipc/brokerable_attachment.cc b/ipc/brokerable_attachment.cc
index 70bd0b2cd306da18930c5c4a260530a8d2e6902d..e3287c803510f863b953383efa45d5883efe0dcc 100644
--- a/ipc/brokerable_attachment.cc
+++ b/ipc/brokerable_attachment.cc
@@ -41,30 +41,29 @@ void BrokerableAttachment::AttachmentId::SerializeToBuffer(char* start_address,
start_address[i] = nonce[i];
}
-BrokerableAttachment::BrokerableAttachment()
- : needs_brokering_(false) {}
+BrokerableAttachment::BrokerableAttachment() {}
-BrokerableAttachment::BrokerableAttachment(const AttachmentId& id,
- bool needs_brokering)
- : id_(id), needs_brokering_(needs_brokering) {}
+BrokerableAttachment::BrokerableAttachment(const AttachmentId& id) : id_(id) {}
-BrokerableAttachment::~BrokerableAttachment() {
-}
+BrokerableAttachment::~BrokerableAttachment() {}
BrokerableAttachment::AttachmentId BrokerableAttachment::GetIdentifier() const {
return id_;
}
bool BrokerableAttachment::NeedsBrokering() const {
- return needs_brokering_;
-}
-
-void BrokerableAttachment::SetNeedsBrokering(bool needs_brokering) {
- needs_brokering_ = needs_brokering;
+ return GetBrokerableType() == PLACEHOLDER;
}
BrokerableAttachment::Type BrokerableAttachment::GetType() const {
return TYPE_BROKERABLE_ATTACHMENT;
}
+#if defined(OS_POSIX)
+base::PlatformFile BrokerableAttachment::TakePlatformFile() {
+ NOTREACHED();
+ return base::PlatformFile();
+}
+#endif // OS_POSIX
+
} // namespace IPC
« no previous file with comments | « ipc/brokerable_attachment.h ('k') | ipc/handle_attachment_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698