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

Side by Side Diff: chrome/common/resource_dispatcher.cc

Issue 6328010: Fix Task Manager to correctly display network usage of plug-in processes. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Redo patch set for changes to trunk. Created 9 years, 10 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 | « chrome/common/render_messages_params.cc ('k') | webkit/glue/weburlloader_impl.cc » ('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) 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 4
5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "chrome/common/resource_dispatcher.h" 7 #include "chrome/common/resource_dispatcher.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 host_render_view_id_(host_render_view_id) { 99 host_render_view_id_(host_render_view_id) {
100 DCHECK(dispatcher_) << "no resource dispatcher"; 100 DCHECK(dispatcher_) << "no resource dispatcher";
101 request_.method = request_info.method; 101 request_.method = request_info.method;
102 request_.url = request_info.url; 102 request_.url = request_info.url;
103 request_.first_party_for_cookies = request_info.first_party_for_cookies; 103 request_.first_party_for_cookies = request_info.first_party_for_cookies;
104 request_.referrer = request_info.referrer; 104 request_.referrer = request_info.referrer;
105 request_.frame_origin = request_info.frame_origin; 105 request_.frame_origin = request_info.frame_origin;
106 request_.main_frame_origin = request_info.main_frame_origin; 106 request_.main_frame_origin = request_info.main_frame_origin;
107 request_.headers = request_info.headers; 107 request_.headers = request_info.headers;
108 request_.load_flags = request_info.load_flags; 108 request_.load_flags = request_info.load_flags;
109 request_.origin_child_id = request_info.requestor_pid; 109 request_.origin_pid = request_info.requestor_pid;
110 request_.resource_type = request_info.request_type; 110 request_.resource_type = request_info.request_type;
111 request_.request_context = request_info.request_context; 111 request_.request_context = request_info.request_context;
112 request_.appcache_host_id = request_info.appcache_host_id; 112 request_.appcache_host_id = request_info.appcache_host_id;
113 request_.download_to_file = request_info.download_to_file; 113 request_.download_to_file = request_info.download_to_file;
114 request_.has_user_gesture = request_info.has_user_gesture; 114 request_.has_user_gesture = request_info.has_user_gesture;
115 request_.host_renderer_id = host_renderer_id_; 115 request_.host_renderer_id = host_renderer_id_;
116 request_.host_render_view_id = host_render_view_id_; 116 request_.host_render_view_id = host_render_view_id_;
117 } 117 }
118 118
119 IPCResourceLoaderBridge::~IPCResourceLoaderBridge() { 119 IPCResourceLoaderBridge::~IPCResourceLoaderBridge() {
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 614
615 // static 615 // static
616 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) { 616 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) {
617 while (!queue->empty()) { 617 while (!queue->empty()) {
618 IPC::Message* message = queue->front(); 618 IPC::Message* message = queue->front();
619 ReleaseResourcesInDataMessage(*message); 619 ReleaseResourcesInDataMessage(*message);
620 queue->pop_front(); 620 queue->pop_front();
621 delete message; 621 delete message;
622 } 622 }
623 } 623 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages_params.cc ('k') | webkit/glue/weburlloader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698