| Index: net/http/http_cache.h
|
| ===================================================================
|
| --- net/http/http_cache.h (revision 68857)
|
| +++ net/http/http_cache.h (working copy)
|
| @@ -86,7 +86,8 @@
|
| // notification arrives.
|
| // The implementation must not access the factory object after invoking the
|
| // |callback| because the object can be deleted from within the callback.
|
| - virtual int CreateBackend(disk_cache::Backend** backend,
|
| + virtual int CreateBackend(NetLog* net_log,
|
| + disk_cache::Backend** backend,
|
| CompletionCallback* callback) = 0;
|
| };
|
|
|
| @@ -104,7 +105,8 @@
|
| static BackendFactory* InMemory(int max_bytes);
|
|
|
| // BackendFactory implementation.
|
| - virtual int CreateBackend(disk_cache::Backend** backend,
|
| + virtual int CreateBackend(NetLog* net_log,
|
| + disk_cache::Backend** backend,
|
| CompletionCallback* callback);
|
|
|
| private:
|
| @@ -138,6 +140,7 @@
|
| // by the HttpCache and will be destroyed using |delete| when the HttpCache is
|
| // destroyed.
|
| HttpCache(HttpTransactionFactory* network_layer,
|
| + NetLog* net_log,
|
| BackendFactory* backend_factory);
|
|
|
| HttpTransactionFactory* network_layer() { return network_layer_.get(); }
|
| @@ -213,7 +216,7 @@
|
| bool will_process_pending_queue;
|
| bool doomed;
|
|
|
| - explicit ActiveEntry(disk_cache::Entry*);
|
| + explicit ActiveEntry(disk_cache::Entry* entry);
|
| ~ActiveEntry();
|
| };
|
|
|
| @@ -342,6 +345,8 @@
|
|
|
| // Variables ----------------------------------------------------------------
|
|
|
| + NetLog* net_log_;
|
| +
|
| // Used when lazily constructing the disk_cache_.
|
| scoped_ptr<BackendFactory> backend_factory_;
|
| bool building_backend_;
|
|
|