| 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/gtest_prod_util.h" | |
| 22 #include "base/memory/ref_counted.h" | 21 #include "base/memory/ref_counted.h" |
| 23 #include "base/memory/scoped_ptr.h" | 22 #include "base/memory/scoped_ptr.h" |
| 24 #include "base/observer_list.h" | 23 #include "base/observer_list.h" |
| 25 #include "base/threading/thread_checker.h" | 24 #include "base/threading/thread_checker.h" |
| 26 #include "net/base/net_export.h" | 25 #include "net/base/net_export.h" |
| 27 #include "net/base/sdch_dictionary.h" | 26 #include "net/base/sdch_dictionary.h" |
| 28 #include "net/base/sdch_problem_codes.h" | 27 #include "net/base/sdch_problem_codes.h" |
| 29 | 28 |
| 30 class GURL; | 29 class GURL; |
| 31 | 30 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 base::ObserverList<SdchObserver, true> observers_; | 236 base::ObserverList<SdchObserver, true> observers_; |
| 238 | 237 |
| 239 base::ThreadChecker thread_checker_; | 238 base::ThreadChecker thread_checker_; |
| 240 | 239 |
| 241 DISALLOW_COPY_AND_ASSIGN(SdchManager); | 240 DISALLOW_COPY_AND_ASSIGN(SdchManager); |
| 242 }; | 241 }; |
| 243 | 242 |
| 244 } // namespace net | 243 } // namespace net |
| 245 | 244 |
| 246 #endif // NET_BASE_SDCH_MANAGER_H_ | 245 #endif // NET_BASE_SDCH_MANAGER_H_ |
| OLD | NEW |