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

Side by Side Diff: net/base/sdch_manager.h

Issue 574283006: Fix dictionary domain check problem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated comments and forbid dictionary domains with "."s. Created 6 years, 3 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 | net/base/sdch_manager.cc » ('j') | net/base/sdch_manager.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // Dictionary saving problems. 108 // Dictionary saving problems.
109 DICTIONARY_HAS_NO_HEADER = 20, 109 DICTIONARY_HAS_NO_HEADER = 20,
110 DICTIONARY_HEADER_LINE_MISSING_COLON = 21, 110 DICTIONARY_HEADER_LINE_MISSING_COLON = 21,
111 DICTIONARY_MISSING_DOMAIN_SPECIFIER = 22, 111 DICTIONARY_MISSING_DOMAIN_SPECIFIER = 22,
112 DICTIONARY_SPECIFIES_TOP_LEVEL_DOMAIN = 23, 112 DICTIONARY_SPECIFIES_TOP_LEVEL_DOMAIN = 23,
113 DICTIONARY_DOMAIN_NOT_MATCHING_SOURCE_URL = 24, 113 DICTIONARY_DOMAIN_NOT_MATCHING_SOURCE_URL = 24,
114 DICTIONARY_PORT_NOT_MATCHING_SOURCE_URL = 25, 114 DICTIONARY_PORT_NOT_MATCHING_SOURCE_URL = 25,
115 DICTIONARY_HAS_NO_TEXT = 26, 115 DICTIONARY_HAS_NO_TEXT = 26,
116 DICTIONARY_REFERER_URL_HAS_DOT_IN_PREFIX = 27, 116 DICTIONARY_REFERER_URL_HAS_DOT_IN_PREFIX = 27,
117 DICTIONARY_DOMAIN_HAS_TRAILING_PERIOD = 28,
117 118
118 // Dictionary loading problems. 119 // Dictionary loading problems.
119 DICTIONARY_LOAD_ATTEMPT_FROM_DIFFERENT_HOST = 30, 120 DICTIONARY_LOAD_ATTEMPT_FROM_DIFFERENT_HOST = 30,
120 DICTIONARY_SELECTED_FOR_SSL = 31, 121 DICTIONARY_SELECTED_FOR_SSL = 31,
121 DICTIONARY_ALREADY_LOADED = 32, 122 DICTIONARY_ALREADY_LOADED = 32,
122 DICTIONARY_SELECTED_FROM_NON_HTTP = 33, 123 DICTIONARY_SELECTED_FROM_NON_HTTP = 33,
123 DICTIONARY_IS_TOO_LARGE= 34, 124 DICTIONARY_IS_TOO_LARGE= 34,
124 DICTIONARY_COUNT_EXCEEDED = 35, 125 DICTIONARY_COUNT_EXCEEDED = 35,
125 DICTIONARY_ALREADY_SCHEDULED_TO_DOWNLOAD = 36, 126 DICTIONARY_ALREADY_SCHEDULED_TO_DOWNLOAD = 36,
126 DICTIONARY_ALREADY_TRIED_TO_DOWNLOAD = 37, 127 DICTIONARY_ALREADY_TRIED_TO_DOWNLOAD = 37,
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 ExperimentSet allow_latency_experiment_; 399 ExperimentSet allow_latency_experiment_;
399 400
400 int fetches_count_for_testing_; 401 int fetches_count_for_testing_;
401 402
402 DISALLOW_COPY_AND_ASSIGN(SdchManager); 403 DISALLOW_COPY_AND_ASSIGN(SdchManager);
403 }; 404 };
404 405
405 } // namespace net 406 } // namespace net
406 407
407 #endif // NET_BASE_SDCH_MANAGER_H_ 408 #endif // NET_BASE_SDCH_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | net/base/sdch_manager.cc » ('j') | net/base/sdch_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698