| 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 |
| 11 // be destroyed while the DictionarySet reference is alive. | 11 // be destroyed while the DictionarySet reference is alive. |
| 12 | 12 |
| 13 #ifndef NET_BASE_SDCH_MANAGER_H_ | 13 #ifndef NET_BASE_SDCH_MANAGER_H_ |
| 14 #define NET_BASE_SDCH_MANAGER_H_ | 14 #define NET_BASE_SDCH_MANAGER_H_ |
| 15 | 15 |
| 16 #include <map> | 16 #include <map> |
| 17 #include <set> | 17 #include <set> |
| 18 #include <string> | 18 #include <string> |
| 19 #include <vector> | 19 #include <vector> |
| 20 | 20 |
| 21 #include "base/macros.h" |
| 21 #include "base/memory/ref_counted.h" | 22 #include "base/memory/ref_counted.h" |
| 22 #include "base/memory/scoped_ptr.h" | 23 #include "base/memory/scoped_ptr.h" |
| 23 #include "base/observer_list.h" | 24 #include "base/observer_list.h" |
| 24 #include "base/threading/thread_checker.h" | 25 #include "base/threading/thread_checker.h" |
| 25 #include "net/base/net_export.h" | 26 #include "net/base/net_export.h" |
| 26 #include "net/base/sdch_dictionary.h" | 27 #include "net/base/sdch_dictionary.h" |
| 27 #include "net/base/sdch_problem_codes.h" | 28 #include "net/base/sdch_problem_codes.h" |
| 28 | 29 |
| 29 class GURL; | 30 class GURL; |
| 30 | 31 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 base::ObserverList<SdchObserver, true> observers_; | 233 base::ObserverList<SdchObserver, true> observers_; |
| 233 | 234 |
| 234 base::ThreadChecker thread_checker_; | 235 base::ThreadChecker thread_checker_; |
| 235 | 236 |
| 236 DISALLOW_COPY_AND_ASSIGN(SdchManager); | 237 DISALLOW_COPY_AND_ASSIGN(SdchManager); |
| 237 }; | 238 }; |
| 238 | 239 |
| 239 } // namespace net | 240 } // namespace net |
| 240 | 241 |
| 241 #endif // NET_BASE_SDCH_MANAGER_H_ | 242 #endif // NET_BASE_SDCH_MANAGER_H_ |
| OLD | NEW |