diff options
author | Ben Murdoch <benm@google.com> | 2010-07-29 17:14:53 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-08-04 14:29:45 +0100 |
commit | c407dc5cd9bdc5668497f21b26b09d988ab439de (patch) | |
tree | 7eaf8707c0309516bdb042ad976feedaf72b0bb1 /net/base/mime_sniffer.h | |
parent | 0998b1cdac5733f299c12d88bc31ef9c8035b8fa (diff) | |
download | external_chromium-c407dc5cd9bdc5668497f21b26b09d988ab439de.zip external_chromium-c407dc5cd9bdc5668497f21b26b09d988ab439de.tar.gz external_chromium-c407dc5cd9bdc5668497f21b26b09d988ab439de.tar.bz2 |
Merge Chromium src@r53293
Change-Id: Ia79acf8670f385cee48c45b0a75371d8e950af34
Diffstat (limited to 'net/base/mime_sniffer.h')
-rw-r--r-- | net/base/mime_sniffer.h | 8 |
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. // |