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

Unified Diff: blimp/net/blob_channel/blob_channel_sender.h

Issue 2033013003: Use shared memory for moving data over BlobChannel Mojo interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blobchannel-master
Patch Set: IPC owners file added. Created 4 years, 5 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 | « blimp/net/BUILD.gn ('k') | blimp/net/blob_channel/mock_blob_channel_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blob_channel/blob_channel_sender.h
diff --git a/blimp/net/blob_channel/blob_channel_sender.h b/blimp/net/blob_channel/blob_channel_sender.h
index ec121c8f896c2e4bd82494850ff19da1928c5227..58c2572334d42344daca345c9ef7c866f92bdba7 100644
--- a/blimp/net/blob_channel/blob_channel_sender.h
+++ b/blimp/net/blob_channel/blob_channel_sender.h
@@ -10,6 +10,9 @@
namespace blimp {
+// Blob size upper limit, for abuse prevention.
+const size_t kMaxBlobSizeBytes = 10 * 1024 * 1024;
+
class BLIMP_NET_EXPORT BlobChannelSender {
public:
virtual ~BlobChannelSender() {}
« no previous file with comments | « blimp/net/BUILD.gn ('k') | blimp/net/blob_channel/mock_blob_channel_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698