OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "net/disk_cache/tracing_cache_backend.h" | 5 #include "net/disk_cache/tracing/tracing_cache_backend.h" |
6 | 6 |
7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
8 | 8 |
9 namespace disk_cache { | 9 namespace disk_cache { |
10 | 10 |
11 // Proxies entry objects created by the real underlying backend. Backend users | 11 // Proxies entry objects created by the real underlying backend. Backend users |
12 // will only see the proxy entries. It is necessary for recording the backend | 12 // will only see the proxy entries. It is necessary for recording the backend |
13 // operations since often non-trivial work is invoked directly on entries. | 13 // operations since often non-trivial work is invoked directly on entries. |
14 class EntryProxy : public Entry, public base::RefCountedThreadSafe<EntryProxy> { | 14 class EntryProxy : public Entry, public base::RefCountedThreadSafe<EntryProxy> { |
15 public: | 15 public: |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 308 |
309 void TracingCacheBackend::GetStats(StatsItems* stats) { | 309 void TracingCacheBackend::GetStats(StatsItems* stats) { |
310 return backend_->GetStats(stats); | 310 return backend_->GetStats(stats); |
311 } | 311 } |
312 | 312 |
313 void TracingCacheBackend::OnExternalCacheHit(const std::string& key) { | 313 void TracingCacheBackend::OnExternalCacheHit(const std::string& key) { |
314 return backend_->OnExternalCacheHit(key); | 314 return backend_->OnExternalCacheHit(key); |
315 } | 315 } |
316 | 316 |
317 } // namespace disk_cache | 317 } // namespace disk_cache |
OLD | NEW |