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

Side by Side Diff: content/public/common/content_constants.h

Issue 1497743005: Allow huge data: URIs only via WebView.loadDataWithBaseUrl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // A handful of resource-like constants related to the Content application. 5 // A handful of resource-like constants related to the Content application.
6 6
7 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_ 7 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_
8 #define CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_ 8 #define CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_
9 9
10 #include <stddef.h> // For size_t 10 #include <stddef.h> // For size_t
(...skipping 24 matching lines...) Expand all
35 35
36 CONTENT_EXPORT extern const size_t kMaxRendererProcessCount; 36 CONTENT_EXPORT extern const size_t kMaxRendererProcessCount;
37 37
38 // The maximum number of session history entries per tab. 38 // The maximum number of session history entries per tab.
39 extern const int kMaxSessionHistoryEntries; 39 extern const int kMaxSessionHistoryEntries;
40 40
41 // The maximum number of characters of the document's title that we're willing 41 // The maximum number of characters of the document's title that we're willing
42 // to accept in the browser process. 42 // to accept in the browser process.
43 extern const size_t kMaxTitleChars; 43 extern const size_t kMaxTitleChars;
44 44
45 // The maximum number of characters in the URL that we're willing to accept
46 // in the browser process. It is set low enough to avoid damage to the browser
47 // but high enough that a web site can abuse location.hash for a little storage.
48 // We have different values for "max accepted" and "max displayed" because
49 // a data: URI may be legitimately massive, but the full URI would kill all
50 // known operating systems if you dropped it into a UI control.
51 CONTENT_EXPORT extern const size_t kMaxURLChars;
45 CONTENT_EXPORT extern const size_t kMaxURLDisplayChars; 52 CONTENT_EXPORT extern const size_t kMaxURLDisplayChars;
46 53
47 extern const char kStatsFilename[]; 54 extern const char kStatsFilename[];
48 extern const int kStatsMaxThreads; 55 extern const int kStatsMaxThreads;
49 extern const int kStatsMaxCounters; 56 extern const int kStatsMaxCounters;
50 57
51 // Most sequence numbers are used by a renderer when responding to a browser 58 // Most sequence numbers are used by a renderer when responding to a browser
52 // request for histogram data. This reserved number is used when a renderer 59 // request for histogram data. This reserved number is used when a renderer
53 // sends an unprovoked update, such as after a page has been loaded. Using 60 // sends an unprovoked update, such as after a page has been loaded. Using
54 // this reserved constant avoids any chance of confusion with a response having 61 // this reserved constant avoids any chance of confusion with a response having
55 // a browser-supplied sequence number. 62 // a browser-supplied sequence number.
56 CONTENT_EXPORT extern const int kHistogramSynchronizerReservedSequenceNumber; 63 CONTENT_EXPORT extern const int kHistogramSynchronizerReservedSequenceNumber;
57 64
58 // Shared constants for the flash hardware video decode field trial. 65 // Shared constants for the flash hardware video decode field trial.
59 CONTENT_EXPORT extern const char kFlashHwVideoDecodeFieldTrialName[]; 66 CONTENT_EXPORT extern const char kFlashHwVideoDecodeFieldTrialName[];
60 CONTENT_EXPORT extern const char kFlashHwVideoDecodeFieldTrialEnabledName[]; 67 CONTENT_EXPORT extern const char kFlashHwVideoDecodeFieldTrialEnabledName[];
61 68
62 } // namespace content 69 } // namespace content
63 70
64 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_ 71 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698