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

Unified Diff: ipc/brokerable_attachment_mac.cc

Issue 2473993003: Delete IPC::ChannelPosix, IPC::ChannelWin and IPC::AttachmentBroker. (Closed)
Patch Set: Created 4 years, 1 month 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.cc ('k') | ipc/brokerable_attachment_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/brokerable_attachment_mac.cc
diff --git a/ipc/brokerable_attachment_mac.cc b/ipc/brokerable_attachment_mac.cc
deleted file mode 100644
index dbcd86b361e3bb3d455eef9fe372587bfd4402c4..0000000000000000000000000000000000000000
--- a/ipc/brokerable_attachment_mac.cc
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright 2015 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 "ipc/brokerable_attachment.h"
-
-#include "crypto/random.h"
-
-namespace IPC {
-
-// static
-BrokerableAttachment::AttachmentId
-BrokerableAttachment::AttachmentId::CreateIdWithRandomNonce() {
- AttachmentId id;
- // In order to prevent mutually untrusted processes from stealing resources
- // from one another, the nonce must be secret. This generates a 128-bit,
- // cryptographicaly-strong random number.
- crypto::RandBytes(id.nonce, BrokerableAttachment::kNonceSize);
- return id;
-}
-
-} // namespace IPC
« no previous file with comments | « ipc/brokerable_attachment.cc ('k') | ipc/brokerable_attachment_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698