Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(809)

Unified Diff: net/url_request/view_cache_helper.h

Issue 8680015: base::Bind: Convert view_http_cache_job_factory.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698