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

Side by Side Diff: content/browser/net/url_request_abort_on_end_job.cc

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // This class simulates what wininet does when a dns lookup fails. 4 // This class simulates what wininet does when a dns lookup fails.
5 5
6 #include <algorithm> 6 #include <algorithm>
7 #include <cstring> 7 #include <cstring>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/task.h"
12 #include "content/browser/net/url_request_abort_on_end_job.h" 11 #include "content/browser/net/url_request_abort_on_end_job.h"
13 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
14 #include "net/base/io_buffer.h" 13 #include "net/base/io_buffer.h"
15 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
16 #include "net/http/http_response_headers.h" 15 #include "net/http/http_response_headers.h"
17 #include "net/url_request/url_request_filter.h" 16 #include "net/url_request/url_request_filter.h"
18 #include "net/url_request/url_request_status.h" 17 #include "net/url_request/url_request_status.h"
19 18
20 namespace { 19 namespace {
21 const char kPageContent[] = "some data\r\n"; 20 const char kPageContent[] = "some data\r\n";
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 return true; 95 return true;
97 } 96 }
98 97
99 SetStatus(net::URLRequestStatus(net::URLRequestStatus::FAILED, 98 SetStatus(net::URLRequestStatus(net::URLRequestStatus::FAILED,
100 net::ERR_CONNECTION_ABORTED)); 99 net::ERR_CONNECTION_ABORTED));
101 *bytes_read = -1; 100 *bytes_read = -1;
102 return false; 101 return false;
103 } 102 }
104 103
105 104
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_context.cc ('k') | content/browser/plugin_service_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698