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

Side by Side Diff: webkit/blob/view_blob_internals_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/view_blob_internals_job.h ('k') | webkit/fileapi/file_system_dir_url_request_job.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/view_blob_internals_job.h" 5 #include "webkit/blob/view_blob_internals_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/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 "</form><br/>\n", 91 "</form><br/>\n",
92 escaped_command.c_str(), 92 escaped_command.c_str(),
93 title.c_str()); 93 title.c_str());
94 } 94 }
95 95
96 } // namespace 96 } // namespace
97 97
98 namespace webkit_blob { 98 namespace webkit_blob {
99 99
100 ViewBlobInternalsJob::ViewBlobInternalsJob( 100 ViewBlobInternalsJob::ViewBlobInternalsJob(
101 net::URLRequest* request, BlobStorageController* blob_storage_controller) 101 net::URLRequest* request,
102 : net::URLRequestSimpleJob(request), 102 net::NetworkDelegate* network_delegate,
103 BlobStorageController* blob_storage_controller)
104 : net::URLRequestSimpleJob(request, network_delegate),
103 blob_storage_controller_(blob_storage_controller), 105 blob_storage_controller_(blob_storage_controller),
104 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { 106 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {
105 } 107 }
106 108
107 ViewBlobInternalsJob::~ViewBlobInternalsJob() { 109 ViewBlobInternalsJob::~ViewBlobInternalsJob() {
108 } 110 }
109 111
110 void ViewBlobInternalsJob::Start() { 112 void ViewBlobInternalsJob::Start() {
111 MessageLoop::current()->PostTask( 113 MessageLoop::current()->PostTask(
112 FROM_HERE, base::Bind(&ViewBlobInternalsJob::DoWorkAsync, 114 FROM_HERE, base::Bind(&ViewBlobInternalsJob::DoWorkAsync,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } 229 }
228 230
229 if (has_multi_items) 231 if (has_multi_items)
230 EndHTMLList(out); 232 EndHTMLList(out);
231 } 233 }
232 234
233 EndHTMLList(out); 235 EndHTMLList(out);
234 } 236 }
235 237
236 } // namespace webkit_blob 238 } // namespace webkit_blob
OLDNEW
« no previous file with comments | « webkit/blob/view_blob_internals_job.h ('k') | webkit/fileapi/file_system_dir_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698