Index: components/nacl/renderer/manifest_downloader.h |
diff --git a/components/nacl/renderer/manifest_downloader.h b/components/nacl/renderer/manifest_downloader.h |
index dbdbf8453c6d1a3b200a9fa1bdbc84e9f62a9e4e..7488cab0c2dfb0e40df5092deb4bafd586784ae0 100644 |
--- a/components/nacl/renderer/manifest_downloader.h |
+++ b/components/nacl/renderer/manifest_downloader.h |
@@ -26,6 +26,12 @@ class ManifestDownloader : public blink::WebURLLoaderClient { |
ManifestDownloader(bool is_installed, ManifestDownloaderCallback cb); |
virtual ~ManifestDownloader(); |
+ // This is a pretty arbitrary limit on the byte size of the NaCl manifest |
+ // file. |
+ // Note that the resulting string object has to have at least one byte extra |
+ // for the null termination character. |
+ static const size_t kNaClManifestMaxFileBytes = 1024 * 1024; |
+ |
private: |
// WebURLLoaderClient implementation. |
virtual void didReceiveResponse(blink::WebURLLoader* loader, |