OLD | NEW |
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 // This file contains the SdchManager class and the DictionarySet | 5 // This file contains the SdchManager class and the DictionarySet |
6 // nested class. The manager is responsible for storing all | 6 // nested class. The manager is responsible for storing all |
7 // SdchDictionarys, and provides access to them through DictionarySet | 7 // SdchDictionarys, and provides access to them through DictionarySet |
8 // objects. A DictionarySet is an object whose lifetime is under the | 8 // objects. A DictionarySet is an object whose lifetime is under the |
9 // control of the consumer. It is a reference to a set of | 9 // control of the consumer. It is a reference to a set of |
10 // dictionaries, and guarantees that none of those dictionaries will | 10 // dictionaries, and guarantees that none of those dictionaries will |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 DomainBlacklistInfo blacklisted_domains_; | 245 DomainBlacklistInfo blacklisted_domains_; |
246 | 246 |
247 // List of hostnames for which a latency experiment is allowed (because a | 247 // List of hostnames for which a latency experiment is allowed (because a |
248 // round trip test has recently passed). | 248 // round trip test has recently passed). |
249 ExperimentSet allow_latency_experiment_; | 249 ExperimentSet allow_latency_experiment_; |
250 | 250 |
251 // Observers that want to be notified of SDCH events. | 251 // Observers that want to be notified of SDCH events. |
252 // Assert list is empty on destruction since if there is an observer | 252 // Assert list is empty on destruction since if there is an observer |
253 // that hasn't removed itself from the list, that observer probably | 253 // that hasn't removed itself from the list, that observer probably |
254 // has a reference to the SdchManager. | 254 // has a reference to the SdchManager. |
255 ObserverList<SdchObserver, true> observers_; | 255 base::ObserverList<SdchObserver, true> observers_; |
256 | 256 |
257 base::ThreadChecker thread_checker_; | 257 base::ThreadChecker thread_checker_; |
258 | 258 |
259 base::WeakPtrFactory<SdchManager> factory_; | 259 base::WeakPtrFactory<SdchManager> factory_; |
260 | 260 |
261 DISALLOW_COPY_AND_ASSIGN(SdchManager); | 261 DISALLOW_COPY_AND_ASSIGN(SdchManager); |
262 }; | 262 }; |
263 | 263 |
264 } // namespace net | 264 } // namespace net |
265 | 265 |
266 #endif // NET_BASE_SDCH_MANAGER_H_ | 266 #endif // NET_BASE_SDCH_MANAGER_H_ |
OLD | NEW |