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

Side by Side Diff: webkit/blob/blob_url_request_job.cc

Issue 10855209: Refactoring: ProtocolHandler::MaybeCreateJob takes NetworkDelegate as argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest merge Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/blob/blob_url_request_job.h ('k') | webkit/blob/blob_url_request_job_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 4
5 #include "webkit/blob/blob_url_request_job.h" 5 #include "webkit/blob/blob_url_request_job.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/file_util_proxy.h" 9 #include "base/file_util_proxy.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 30 matching lines...) Expand all
41 const char kHTTPNotFoundText[] = "Not Found"; 41 const char kHTTPNotFoundText[] = "Not Found";
42 const char kHTTPMethodNotAllowText[] = "Method Not Allowed"; 42 const char kHTTPMethodNotAllowText[] = "Method Not Allowed";
43 const char kHTTPRequestedRangeNotSatisfiableText[] = 43 const char kHTTPRequestedRangeNotSatisfiableText[] =
44 "Requested Range Not Satisfiable"; 44 "Requested Range Not Satisfiable";
45 const char kHTTPInternalErrorText[] = "Internal Server Error"; 45 const char kHTTPInternalErrorText[] = "Internal Server Error";
46 46
47 } // namespace 47 } // namespace
48 48
49 BlobURLRequestJob::BlobURLRequestJob( 49 BlobURLRequestJob::BlobURLRequestJob(
50 net::URLRequest* request, 50 net::URLRequest* request,
51 net::NetworkDelegate* network_delegate,
51 BlobData* blob_data, 52 BlobData* blob_data,
52 base::MessageLoopProxy* file_thread_proxy) 53 base::MessageLoopProxy* file_thread_proxy)
53 : net::URLRequestJob(request, request->context()->network_delegate()), 54 : net::URLRequestJob(request, network_delegate),
54 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)), 55 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)),
55 blob_data_(blob_data), 56 blob_data_(blob_data),
56 file_thread_proxy_(file_thread_proxy), 57 file_thread_proxy_(file_thread_proxy),
57 total_size_(0), 58 total_size_(0),
58 remaining_bytes_(0), 59 remaining_bytes_(0),
59 pending_get_file_info_count_(0), 60 pending_get_file_info_count_(0),
60 current_item_index_(0), 61 current_item_index_(0),
61 current_item_offset_(0), 62 current_item_offset_(0),
62 error_(false), 63 error_(false),
63 headers_set_(false), 64 headers_set_(false),
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 file_thread_proxy_, 535 file_thread_proxy_,
535 item.path(), 536 item.path(),
536 item.offset(), 537 item.offset(),
537 item.expected_modification_time()); 538 item.expected_modification_time());
538 } 539 }
539 DCHECK(index_to_reader_[index]); 540 DCHECK(index_to_reader_[index]);
540 return index_to_reader_[index]; 541 return index_to_reader_[index];
541 } 542 }
542 543
543 } // namespace webkit_blob 544 } // namespace webkit_blob
OLDNEW
« no previous file with comments | « webkit/blob/blob_url_request_job.h ('k') | webkit/blob/blob_url_request_job_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698