OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SDCH_SDCH_OWNER_H_ | 5 #ifndef NET_SDCH_SDCH_OWNER_H_ |
6 #define NET_SDCH_SDCH_OWNER_H_ | 6 #define NET_SDCH_SDCH_OWNER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // called once per SdchOwner instance. | 49 // called once per SdchOwner instance. |
50 void EnablePersistentStorage(PersistentPrefStore* pref_store); | 50 void EnablePersistentStorage(PersistentPrefStore* pref_store); |
51 | 51 |
52 // Defaults to kMaxTotalDictionarySize. | 52 // Defaults to kMaxTotalDictionarySize. |
53 void SetMaxTotalDictionarySize(size_t max_total_dictionary_size); | 53 void SetMaxTotalDictionarySize(size_t max_total_dictionary_size); |
54 | 54 |
55 // Defaults to kMinSpaceForDictionaryFetch. | 55 // Defaults to kMinSpaceForDictionaryFetch. |
56 void SetMinSpaceForDictionaryFetch(size_t min_space_for_dictionary_fetch); | 56 void SetMinSpaceForDictionaryFetch(size_t min_space_for_dictionary_fetch); |
57 | 57 |
58 // SdchObserver implementation. | 58 // SdchObserver implementation. |
| 59 void OnDictionaryAdded(SdchManager* manager, |
| 60 const GURL& dictionary_url, |
| 61 const std::string& server_hash) override; |
| 62 void OnDictionaryRemoved(SdchManager* manager, |
| 63 const std::string& server_hash) override; |
59 void OnDictionaryUsed(SdchManager* manager, | 64 void OnDictionaryUsed(SdchManager* manager, |
60 const std::string& server_hash) override; | 65 const std::string& server_hash) override; |
61 void OnGetDictionary(SdchManager* manager, | 66 void OnGetDictionary(SdchManager* manager, |
62 const GURL& request_url, | 67 const GURL& request_url, |
63 const GURL& dictionary_url) override; | 68 const GURL& dictionary_url) override; |
64 void OnClearDictionaries(SdchManager* manager) override; | 69 void OnClearDictionaries(SdchManager* manager) override; |
65 | 70 |
66 // PrefStore::Observer implementation. | 71 // PrefStore::Observer implementation. |
67 void OnPrefValueChanged(const std::string& key) override; | 72 void OnPrefValueChanged(const std::string& key) override; |
68 void OnInitializationCompleted(bool succeeded) override; | 73 void OnInitializationCompleted(bool succeeded) override; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 // Creation time for this SdchOwner object, used for reporting temporal memory | 219 // Creation time for this SdchOwner object, used for reporting temporal memory |
215 // pressure. | 220 // pressure. |
216 base::Time creation_time_; | 221 base::Time creation_time_; |
217 | 222 |
218 DISALLOW_COPY_AND_ASSIGN(SdchOwner); | 223 DISALLOW_COPY_AND_ASSIGN(SdchOwner); |
219 }; | 224 }; |
220 | 225 |
221 } // namespace net | 226 } // namespace net |
222 | 227 |
223 #endif // NET_SDCH_SDCH_OWNER_H_ | 228 #endif // NET_SDCH_SDCH_OWNER_H_ |
OLD | NEW |