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

Side by Side Diff: content/browser/tcmalloc_internals_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
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 "content/browser/tcmalloc_internals_request_job.h" 5 #include "content/browser/tcmalloc_internals_request_job.h"
6 6
7 #include "base/allocator/allocator_extension.h" 7 #include "base/allocator/allocator_extension.h"
8 #include "content/common/child_process_messages.h" 8 #include "content/common/child_process_messages.h"
9 #include "content/public/browser/browser_child_process_host_iterator.h" 9 #include "content/public/browser/browser_child_process_host_iterator.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 data->append("</td></tr>\n"); 50 data->append("</td></tr>\n");
51 data->append("<tr><td><pre>\n"); 51 data->append("<tr><td><pre>\n");
52 data->append(oit->second); 52 data->append(oit->second);
53 data->append("</pre></td></tr>\n"); 53 data->append("</pre></td></tr>\n");
54 } 54 }
55 data->append("</table>\n"); 55 data->append("</table>\n");
56 outputs_.clear(); 56 outputs_.clear();
57 } 57 }
58 58
59 TcmallocInternalsRequestJob::TcmallocInternalsRequestJob( 59 TcmallocInternalsRequestJob::TcmallocInternalsRequestJob(
60 net::URLRequest* request) : net::URLRequestSimpleJob(request) { 60 net::URLRequest* request, net::NetworkDelegate* network_delegate)
61 : net::URLRequestSimpleJob(request, network_delegate) {
61 } 62 }
62 63
63 #if defined(USE_TCMALLOC) 64 #if defined(USE_TCMALLOC)
64 void RequestTcmallocStatsFromChildRenderProcesses() { 65 void RequestTcmallocStatsFromChildRenderProcesses() {
65 RenderProcessHost::iterator it(RenderProcessHost::AllHostsIterator()); 66 RenderProcessHost::iterator it(RenderProcessHost::AllHostsIterator());
66 while (!it.IsAtEnd()) { 67 while (!it.IsAtEnd()) {
67 it.GetCurrentValue()->Send(new ChildProcessMsg_GetTcmallocStats); 68 it.GetCurrentValue()->Send(new ChildProcessMsg_GetTcmallocStats);
68 it.Advance(); 69 it.Advance();
69 } 70 }
70 } 71 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 charset->assign("UTF8"); 112 charset->assign("UTF8");
112 113
113 data->clear(); 114 data->clear();
114 #if defined(USE_TCMALLOC) 115 #if defined(USE_TCMALLOC)
115 AboutTcmalloc(data); 116 AboutTcmalloc(data);
116 #endif 117 #endif
117 return net::OK; 118 return net::OK;
118 } 119 }
119 120
120 } // namespace content 121 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/tcmalloc_internals_request_job.h ('k') | content/test/net/url_request_abort_on_end_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698