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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 // Content-Encoding problems detected, with no action taken. | 101 // Content-Encoding problems detected, with no action taken. |
102 MULTIENCODING_FOR_NON_SDCH_REQUEST = 50, | 102 MULTIENCODING_FOR_NON_SDCH_REQUEST = 50, |
103 SDCH_CONTENT_ENCODE_FOR_NON_SDCH_REQUEST = 51, | 103 SDCH_CONTENT_ENCODE_FOR_NON_SDCH_REQUEST = 51, |
104 | 104 |
105 // Dictionary manager issues. | 105 // Dictionary manager issues. |
106 DOMAIN_BLACKLIST_INCLUDES_TARGET = 61, | 106 DOMAIN_BLACKLIST_INCLUDES_TARGET = 61, |
107 | 107 |
108 // Problematic decode recovery methods. | 108 // Problematic decode recovery methods. |
109 META_REFRESH_RECOVERY = 70, // Dictionary not found. | 109 META_REFRESH_RECOVERY = 70, // Dictionary not found. |
110 META_REFRESH_UNSUPPORTED = 71, // Unrecoverable error. | 110 // defunct = 71, // ALmost the same as META_REFRESH_UNSUPPORTED. |
111 CACHED_META_REFRESH_UNSUPPORTED = 72, // As above, but pulled from cache. | 111 // defunct = 72, // Almost the same as CACHED_META_REFRESH_UNSUPPORTED. |
112 PASSING_THROUGH_NON_SDCH = 73, // Non-html tagged as sdch but malformed. | 112 // defunct = 73, // PASSING_THROUGH_NON_SDCH plus DISCARD_TENTATIVE_SDCH. |
| 113 META_REFRESH_UNSUPPORTED = 74, // Unrecoverable error. |
| 114 CACHED_META_REFRESH_UNSUPPORTED = 75, // As above, but pulled from cache. |
| 115 PASSING_THROUGH_NON_SDCH = 76, // Non-html tagged as sdch but malformed. |
| 116 |
113 | 117 |
114 // Common decoded recovery methods. | 118 // Common decoded recovery methods. |
115 META_REFRESH_CACHED_RECOVERY = 80, // Probably startup tab loading. | 119 META_REFRESH_CACHED_RECOVERY = 80, // Probably startup tab loading. |
116 DISCARD_TENTATIVE_SDCH = 81, // Server decided not to use sdch. | 120 DISCARD_TENTATIVE_SDCH = 81, // Server decided not to use sdch. |
117 | 121 |
118 MAX_PROBLEM_CODE // Used to bound histogram. | 122 MAX_PROBLEM_CODE // Used to bound histogram. |
119 }; | 123 }; |
120 | 124 |
121 // Use the following static limits to block DOS attacks until we implement | 125 // Use the following static limits to block DOS attacks until we implement |
122 // a cached dictionary evicition strategy. | 126 // a cached dictionary evicition strategy. |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 DomainCounter blacklisted_domains_; | 311 DomainCounter blacklisted_domains_; |
308 | 312 |
309 // Support exponential backoff in number of domain accesses before | 313 // Support exponential backoff in number of domain accesses before |
310 // blacklisting expires. | 314 // blacklisting expires. |
311 DomainCounter exponential_blacklist_count; | 315 DomainCounter exponential_blacklist_count; |
312 | 316 |
313 DISALLOW_COPY_AND_ASSIGN(SdchManager); | 317 DISALLOW_COPY_AND_ASSIGN(SdchManager); |
314 }; | 318 }; |
315 | 319 |
316 #endif // NET_BASE_SDCH_MANAGER_H_ | 320 #endif // NET_BASE_SDCH_MANAGER_H_ |
OLD | NEW |