Home
last modified time | relevance | path

Searched refs:MemBackendImpl (Results 1 – 9 of 9) sorted by relevance

/external/cronet/net/disk_cache/memory/
Dmem_backend_impl.cc45 MemBackendImpl::MemBackendImpl(net::NetLog* net_log) in MemBackendImpl() function in disk_cache::MemBackendImpl
50 base::BindRepeating(&MemBackendImpl::OnMemoryPressure, in MemBackendImpl()
53 MemBackendImpl::~MemBackendImpl() { in ~MemBackendImpl()
63 std::unique_ptr<MemBackendImpl> MemBackendImpl::CreateBackend( in CreateBackend()
66 std::unique_ptr<MemBackendImpl> cache( in CreateBackend()
67 std::make_unique<MemBackendImpl>(net_log)); in CreateBackend()
75 bool MemBackendImpl::Init() { in Init()
97 bool MemBackendImpl::SetMaxSize(int64_t max_bytes) { in SetMaxSize()
109 int64_t MemBackendImpl::MaxFileSize() const { in MaxFileSize()
113 void MemBackendImpl::OnEntryInserted(MemEntryImpl* entry) { in OnEntryInserted()
[all …]
Dmem_backend_impl.h39 class NET_EXPORT_PRIVATE MemBackendImpl final : public Backend {
41 explicit MemBackendImpl(net::NetLog* net_log);
43 MemBackendImpl(const MemBackendImpl&) = delete;
44 MemBackendImpl& operator=(const MemBackendImpl&) = delete;
46 ~MemBackendImpl() override;
53 static std::unique_ptr<MemBackendImpl> CreateBackend(int64_t max_bytes,
94 static base::Time Now(const base::WeakPtr<MemBackendImpl>& self);
159 base::WeakPtrFactory<MemBackendImpl> weak_factory_{this};
Dmem_entry_impl.h32 class MemBackendImpl; variable
77 MemEntryImpl(base::WeakPtr<MemBackendImpl> backend,
82 MemEntryImpl(base::WeakPtr<MemBackendImpl> backend,
143 MemEntryImpl(base::WeakPtr<MemBackendImpl> backend,
197 base::WeakPtr<MemBackendImpl> backend_; // Back pointer to the cache.
Dmem_entry_impl.cc78 MemEntryImpl::MemEntryImpl(base::WeakPtr<MemBackendImpl> backend, in MemEntryImpl()
92 MemEntryImpl::MemEntryImpl(base::WeakPtr<MemBackendImpl> backend, in MemEntryImpl()
130 last_used_ = MemBackendImpl::Now(backend_); in UpdateStateOnUse()
286 MemEntryImpl::MemEntryImpl(base::WeakPtr<MemBackendImpl> backend, in MemEntryImpl()
294 last_modified_(MemBackendImpl::Now(backend)), in MemEntryImpl()
/external/cronet/net/disk_cache/
Ddisk_cache_test_base.h33 class MemBackendImpl; variable
206 raw_ptr<disk_cache::MemBackendImpl> mem_cache_ = nullptr;
Ddisk_cache.cc326 std::unique_ptr<MemBackendImpl> mem_backend_impl = in CreateCacheBackendImpl()
327 disk_cache::MemBackendImpl::CreateBackend(max_bytes, net_log); in CreateCacheBackendImpl()
Ddisk_cache_test_base.cc365 auto cache = std::make_unique<disk_cache::MemBackendImpl>(nullptr); in InitMemoryCache()
Ddisk_cache_fuzzer.cc208 raw_ptr<disk_cache::MemBackendImpl> mem_cache_ = nullptr;
1158 auto cache = std::make_unique<disk_cache::MemBackendImpl>(nullptr); in CreateBackend()
Dbackend_unittest.cc596 cache = disk_cache::MemBackendImpl::CreateBackend(0, nullptr); in TEST_F()