OLD | NEW |
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 // Provides global database of differential decompression dictionaries for the | 5 // Provides global database of differential decompression dictionaries for the |
6 // SDCH filter (processes sdch enconded content). | 6 // SDCH filter (processes sdch enconded content). |
7 | 7 |
8 // Exactly one instance of SdchManager is built, and all references are made | 8 // Exactly one instance of SdchManager is built, and all references are made |
9 // into that collection. | 9 // into that collection. |
10 // | 10 // |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 // Failsafe hack. | 102 // Failsafe hack. |
103 ATTEMPT_TO_DECODE_NON_HTTP_DATA = 40, | 103 ATTEMPT_TO_DECODE_NON_HTTP_DATA = 40, |
104 | 104 |
105 | 105 |
106 // Content-Encoding problems detected, with no action taken. | 106 // Content-Encoding problems detected, with no action taken. |
107 MULTIENCODING_FOR_NON_SDCH_REQUEST = 50, | 107 MULTIENCODING_FOR_NON_SDCH_REQUEST = 50, |
108 SDCH_CONTENT_ENCODE_FOR_NON_SDCH_REQUEST = 51, | 108 SDCH_CONTENT_ENCODE_FOR_NON_SDCH_REQUEST = 51, |
109 | 109 |
110 // Dictionary manager issues. | 110 // Dictionary manager issues. |
111 DOMAIN_BLACKLIST_INCLUDES_TARGET = 60, | 111 PLEASE_IGNORE_THIS_ENUM = 60, // Erroneous use in Version 1.0 of Chrome. |
| 112 DOMAIN_BLACKLIST_INCLUDES_TARGET = 61, |
112 | 113 |
113 | 114 |
114 MAX_PROBLEM_CODE // Used to bound histogram. | 115 MAX_PROBLEM_CODE // Used to bound histogram. |
115 }; | 116 }; |
116 | 117 |
117 // Use the following static limits to block DOS attacks until we implement | 118 // Use the following static limits to block DOS attacks until we implement |
118 // a cached dictionary evicition strategy. | 119 // a cached dictionary evicition strategy. |
119 static const size_t kMaxDictionarySize; | 120 static const size_t kMaxDictionarySize; |
120 static const size_t kMaxDictionaryCount; | 121 static const size_t kMaxDictionaryCount; |
121 | 122 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 // domain is supported. | 279 // domain is supported. |
279 std::string supported_domain_; | 280 std::string supported_domain_; |
280 | 281 |
281 // List domains where decode failures have required disabling sdch. | 282 // List domains where decode failures have required disabling sdch. |
282 std::set<std::string> blacklisted_domains_; | 283 std::set<std::string> blacklisted_domains_; |
283 | 284 |
284 DISALLOW_COPY_AND_ASSIGN(SdchManager); | 285 DISALLOW_COPY_AND_ASSIGN(SdchManager); |
285 }; | 286 }; |
286 | 287 |
287 #endif // NET_BASE_SDCH_MANAGER_H_ | 288 #endif // NET_BASE_SDCH_MANAGER_H_ |
OLD | NEW |