| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef NET_BASE_SDCH_DICTIONARY_H_ | 5 #ifndef NET_BASE_SDCH_DICTIONARY_H_ |
| 6 #define NET_BASE_SDCH_DICTIONARY_H_ | 6 #define NET_BASE_SDCH_DICTIONARY_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "net/base/net_export.h" | 16 #include "net/base/net_export.h" |
| 17 #include "net/base/sdch_problem_codes.h" | 17 #include "net/base/sdch_problem_codes.h" |
| 18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| 19 | 19 |
| 20 namespace base { | |
| 21 class Clock; | |
| 22 class Value; | |
| 23 } | |
| 24 | |
| 25 namespace net { | 20 namespace net { |
| 26 | 21 |
| 27 // Contains all information for an SDCH dictionary. This class is intended | 22 // Contains all information for an SDCH dictionary. This class is intended |
| 28 // to be used with a RefCountedData<> wrappers. These dictionaries | 23 // to be used with a RefCountedData<> wrappers. These dictionaries |
| 29 // are vended by SdchManager; see sdch_manager.h for details. | 24 // are vended by SdchManager; see sdch_manager.h for details. |
| 30 class NET_EXPORT_PRIVATE SdchDictionary { | 25 class NET_EXPORT_PRIVATE SdchDictionary { |
| 31 public: | 26 public: |
| 32 // Construct a vc-diff usable dictionary from the dictionary_text starting | 27 // Construct a vc-diff usable dictionary from the dictionary_text starting |
| 33 // at the given offset. The supplied client_hash should be used to | 28 // at the given offset. The supplied client_hash should be used to |
| 34 // advertise the dictionary's availability relative to the suppplied URL. | 29 // advertise the dictionary's availability relative to the suppplied URL. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 const std::string path_; | 98 const std::string path_; |
| 104 const base::Time expiration_; // Implied by max-age. | 99 const base::Time expiration_; // Implied by max-age. |
| 105 const std::set<int> ports_; | 100 const std::set<int> ports_; |
| 106 | 101 |
| 107 void operator=(const SdchDictionary&) = delete; | 102 void operator=(const SdchDictionary&) = delete; |
| 108 }; | 103 }; |
| 109 | 104 |
| 110 } // namespace net | 105 } // namespace net |
| 111 | 106 |
| 112 #endif // NET_BASE_SDCH_DICTIONARY_H_ | 107 #endif // NET_BASE_SDCH_DICTIONARY_H_ |
| OLD | NEW |