summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_cache.h')
-rw-r--r--net/http/http_cache.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/net/http/http_cache.h b/net/http/http_cache.h
index ab8e4ad..27c6951 100644
--- a/net/http/http_cache.h
+++ b/net/http/http_cache.h
@@ -210,7 +210,6 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
private:
// Types --------------------------------------------------------------------
- class BackendCallback;
class MetadataWriter;
class SSLHostInfoFactoryAdaptor;
class Transaction;
@@ -353,6 +352,16 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
// Processes BackendCallback notifications.
void OnIOComplete(int result, PendingOp* entry);
+ // Helper to conditionally delete |pending_op| if the HttpCache object it
+ // is meant for has been deleted.
+ //
+ // TODO(ajwong): The PendingOp lifetime management is very tricky. It might
+ // be possible to simplify it using either base::Owned() or base::Passed()
+ // with the callback.
+ static void OnPendingOpComplete(const base::WeakPtr<HttpCache>& cache,
+ PendingOp* pending_op,
+ int result);
+
// Processes the backend creation notification.
void OnBackendCreated(int result, PendingOp* pending_op);