summaryrefslogtreecommitdiffstats
path: root/net/base/mime_sniffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/mime_sniffer.h')
-rw-r--r--net/base/mime_sniffer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/base/mime_sniffer.h b/net/base/mime_sniffer.h
index 6fd7014..d0c4e78 100644
--- a/net/base/mime_sniffer.h
+++ b/net/base/mime_sniffer.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -11,6 +11,12 @@ class GURL;
namespace net {
+// The maximum number of bytes used by any internal mime sniffing routine. May
+// be useful for callers to determine an efficient buffer size to pass to
+// |SniffMimeType|.
+// This must be updated if any internal sniffing routine needs more bytes.
+const int kMaxBytesToSniff = 1024;
+
// Examine the URL and the mime_type and decide whether we should sniff a
// replacement mime type from the content.
//