Index: net/url_request/view_cache_helper.h |
diff --git a/net/url_request/view_cache_helper.h b/net/url_request/view_cache_helper.h |
index 7471ca53bf97420e4713128bce0499c5a1c9585e..f6f7cc4d649c5e7eb1416113282d0884e2b820b8 100644 |
--- a/net/url_request/view_cache_helper.h |
+++ b/net/url_request/view_cache_helper.h |
@@ -33,7 +33,7 @@ class NET_EXPORT ViewCacheHelper { |
int GetEntryInfoHTML(const std::string& key, |
const URLRequestContext* context, |
std::string* out, |
- OldCompletionCallback* callback); |
+ const CompletionCallback& callback); |
// Formats the cache contents as HTML. Returns a net error code. |
// If this method returns ERR_IO_PENDING, |callback| will be notified when the |
@@ -43,7 +43,7 @@ class NET_EXPORT ViewCacheHelper { |
int GetContentsHTML(const URLRequestContext* context, |
const std::string& url_prefix, |
std::string* out, |
- OldCompletionCallback* callback); |
+ const CompletionCallback& callback); |
// Lower-level helper to produce a textual representation of binary data. |
// The results are appended to |result| and can be used in HTML pages |
@@ -70,7 +70,7 @@ class NET_EXPORT ViewCacheHelper { |
const URLRequestContext* context, |
const std::string& url_prefix, |
std::string* out, |
- OldCompletionCallback* callback); |
+ const CompletionCallback& callback); |
// This is a helper function used to trigger a completion callback. It may |
// only be called if callback_ is non-null. |
@@ -110,7 +110,7 @@ class NET_EXPORT ViewCacheHelper { |
std::string key_; |
std::string url_prefix_; |
std::string* data_; |
- OldCompletionCallback* callback_; |
+ CompletionCallback callback_; |
State next_state_; |