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

Unified Diff: net/disk_cache/in_flight_io.h

Issue 11649028: Add an IO thread index bitmap to disk cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: windows build fix Created 7 years, 11 months 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/disk_cache/in_flight_io.h
diff --git a/net/disk_cache/in_flight_io.h b/net/disk_cache/in_flight_io.h
index 2ba7517cec68043f971197a5eb0dc69733afd42a..f61117938c70da824533bc6ba3ed596fe733867d 100644
--- a/net/disk_cache/in_flight_io.h
+++ b/net/disk_cache/in_flight_io.h
@@ -52,6 +52,8 @@ class BackgroundIO : public base::RefCountedThreadSafe<BackgroundIO> {
// thread.
void NotifyController();
+ scoped_refptr<base::MessageLoopProxy> GetCallbackThread();
+
int result_; // Final operation result.
private:
@@ -108,6 +110,10 @@ class InFlightIO {
// the one performing the call.
void InvokeCallback(BackgroundIO* operation, bool cancel_task);
+ scoped_refptr<base::MessageLoopProxy> callback_thread() {
+ return callback_thread_;
+ }
+
protected:
// This method is called to signal the completion of the |operation|. |cancel|
// is true if the operation is being cancelled. This method is called on the

Powered by Google App Engine
This is Rietveld 408576698