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

Side by Side Diff: chrome/common/chrome_constants.h

Issue 523088: Avoid accepting suspiciously long URLs from the renderer. These can take down... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/common/chrome_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 Chrome application. 5 // A handful of resource-like constants related to the Chrome application.
6 6
7 #ifndef CHROME_COMMON_CHROME_CONSTANTS_H_ 7 #ifndef CHROME_COMMON_CHROME_CONSTANTS_H_
8 #define CHROME_COMMON_CHROME_CONSTANTS_H_ 8 #define CHROME_COMMON_CHROME_CONSTANTS_H_
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 extern const FilePath::CharType kCustomDictionaryFileName[]; 60 extern const FilePath::CharType kCustomDictionaryFileName[];
61 extern const FilePath::CharType kLoginDataFileName[]; 61 extern const FilePath::CharType kLoginDataFileName[];
62 extern const FilePath::CharType kJumpListIconDirname[]; 62 extern const FilePath::CharType kJumpListIconDirname[];
63 extern const FilePath::CharType kWebAppDirname[]; 63 extern const FilePath::CharType kWebAppDirname[];
64 64
65 extern const unsigned int kMaxRendererProcessCount; 65 extern const unsigned int kMaxRendererProcessCount;
66 extern const int kStatsMaxThreads; 66 extern const int kStatsMaxThreads;
67 extern const int kStatsMaxCounters; 67 extern const int kStatsMaxCounters;
68 68
69 // The maximum number of characters of the document's title that we're willing 69 // The maximum number of characters of the document's title that we're willing
70 // to send to the browser process. 70 // to accept in the browser process.
71 extern const size_t kMaxTitleChars; 71 extern const size_t kMaxTitleChars;
72 // The maximum number of characters in the URL that we're willing to accept
73 // in the browser process. It is set low enough to avoid damage to the browser
74 // but high enough that a web site can abuse location.hash for a little storage.
75 extern const size_t kMaxURLChars;
72 76
73 extern const bool kRecordModeEnabled; 77 extern const bool kRecordModeEnabled;
74 78
75 } // namespace chrome 79 } // namespace chrome
76 80
77 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ 81 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/chrome_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698