| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/memory_pressure_listener.h" | 15 #include "base/memory/memory_pressure_listener.h" |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "net/base/sdch_observer.h" | 17 #include "net/base/sdch_observer.h" |
| 18 #include "net/url_request/sdch_dictionary_fetcher.h" | 18 #include "net/url_request/sdch_dictionary_fetcher.h" |
| 19 | 19 |
| 20 class GURL; | 20 class GURL; |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 class Clock; | 23 class Clock; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace net { | 26 namespace net { |
| 27 class NetLogWithSource; |
| 27 class SdchManager; | 28 class SdchManager; |
| 28 class URLRequestContext; | 29 class URLRequestContext; |
| 29 | 30 |
| 30 // This class owns the SDCH objects not owned as part of URLRequestContext, and | 31 // This class owns the SDCH objects not owned as part of URLRequestContext, and |
| 31 // exposes interface for setting SDCH policy. It should be instantiated by | 32 // exposes interface for setting SDCH policy. It should be instantiated by |
| 32 // the net/ embedder. | 33 // the net/ embedder. |
| 33 // TODO(rdsmith): Implement dictionary prioritization. | 34 // TODO(rdsmith): Implement dictionary prioritization. |
| 34 class NET_EXPORT SdchOwner : public SdchObserver { | 35 class NET_EXPORT SdchOwner : public SdchObserver { |
| 35 public: | 36 public: |
| 36 // Abstact storage interface for storing settings that allows the embedder | 37 // Abstact storage interface for storing settings that allows the embedder |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 // Creation time for this SdchOwner object, used for reporting temporal memory | 262 // Creation time for this SdchOwner object, used for reporting temporal memory |
| 262 // pressure. | 263 // pressure. |
| 263 base::Time creation_time_; | 264 base::Time creation_time_; |
| 264 | 265 |
| 265 DISALLOW_COPY_AND_ASSIGN(SdchOwner); | 266 DISALLOW_COPY_AND_ASSIGN(SdchOwner); |
| 266 }; | 267 }; |
| 267 | 268 |
| 268 } // namespace net | 269 } // namespace net |
| 269 | 270 |
| 270 #endif // NET_SDCH_SDCH_OWNER_H_ | 271 #endif // NET_SDCH_SDCH_OWNER_H_ |
| OLD | NEW |