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 CachedMetadataHandler_h | 5 #ifndef CachedMetadataHandler_h |
6 #define CachedMetadataHandler_h | 6 #define CachedMetadataHandler_h |
7 | 7 |
8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
9 #include "wtf/Forward.h" | 9 #include "wtf/Forward.h" |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 // Reset existing metadata, to allow setting new data. | 29 // Reset existing metadata, to allow setting new data. |
30 virtual void clearCachedMetadata(CacheType = CacheLocally) = 0; | 30 virtual void clearCachedMetadata(CacheType = CacheLocally) = 0; |
31 // Returns cached metadata of the given type associated with this resource. | 31 // Returns cached metadata of the given type associated with this resource. |
32 virtual CachedMetadata* cachedMetadata(unsigned dataTypeID) const = 0; | 32 virtual CachedMetadata* cachedMetadata(unsigned dataTypeID) const = 0; |
33 // Returns the encoding to which the cache is specific. | 33 // Returns the encoding to which the cache is specific. |
34 virtual String encoding() const = 0; | 34 virtual String encoding() const = 0; |
35 | 35 |
36 protected: | 36 protected: |
37 CachedMetadataHandler() { } | 37 CachedMetadataHandler() { } |
38 }; | 38 }; |
39 } | 39 } // namespace blink |
40 | 40 |
41 #endif // CachedMetadataHandler_h | 41 #endif // CachedMetadataHandler_h |
OLD | NEW |