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

Unified Diff: net/http/http_cache_transaction.h

Issue 2002002: Http Cache: Handle the asynchronous instantiation of the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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
« no previous file with comments | « net/http/http_cache.cc ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_transaction.h
===================================================================
--- net/http/http_cache_transaction.h (revision 46487)
+++ net/http/http_cache_transaction.h (working copy)
@@ -111,6 +111,8 @@
enum State {
STATE_NONE,
+ STATE_GET_BACKEND,
+ STATE_GET_BACKEND_COMPLETE,
STATE_SEND_REQUEST,
STATE_SEND_REQUEST_COMPLETE,
STATE_SUCCESSFUL_SEND_REQUEST,
@@ -160,6 +162,8 @@
// Each of these methods corresponds to a State value. If there is an
// argument, the value corresponds to the return of the previous state or
// corresponding callback.
+ int DoGetBackend();
+ int DoGetBackendComplete(int result);
int DoSendRequest();
int DoSendRequestComplete(int result);
int DoSuccessfulSendRequest();
@@ -202,9 +206,6 @@
// layer (skipping the cache entirely).
bool ShouldPassThrough();
- // Associates this transaction with a cache entry.
- int AddToEntry();
-
// Called to begin reading from the cache. Returns network error code.
int BeginCacheRead();
@@ -225,9 +226,6 @@
// Returns a network error code.
int BeginExternallyConditionalizedRequest();
- // Called to begin a network transaction. Returns network error code.
- int BeginNetworkRequest();
-
// Called to restart a network transaction after an error. Returns network
// error code.
int RestartNetworkRequest();
@@ -332,7 +330,7 @@
CompletionCallbackImpl<Transaction> io_callback_;
scoped_refptr<CancelableCompletionCallback<Transaction> > cache_callback_;
scoped_refptr<CancelableCompletionCallback<Transaction> >
- write_headers_callback_;
+ write_headers_callback_;
};
} // namespace net
« no previous file with comments | « net/http/http_cache.cc ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698