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

Unified Diff: net/http/http_network_layer.cc

Issue 222009: Replace some net::ERR_FAILED generic error codes with more specific codes.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Address wtc's comments Created 11 years, 3 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_network_layer.h ('k') | net/http/http_network_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_layer.cc
===================================================================
--- net/http/http_network_layer.cc (revision 26789)
+++ net/http/http_network_layer.cc (working copy)
@@ -59,11 +59,12 @@
HttpNetworkLayer::~HttpNetworkLayer() {
}
-HttpTransaction* HttpNetworkLayer::CreateTransaction() {
+int HttpNetworkLayer::CreateTransaction(scoped_ptr<HttpTransaction>* trans) {
if (suspended_)
- return NULL;
+ return ERR_NETWORK_IO_SUSPENDED;
- return new HttpNetworkTransaction(GetSession(), socket_factory_);
+ trans->reset(new HttpNetworkTransaction(GetSession(), socket_factory_));
+ return OK;
}
HttpCache* HttpNetworkLayer::GetCache() {
« no previous file with comments | « net/http/http_network_layer.h ('k') | net/http/http_network_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698