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

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

Issue 6621006: Take out the is_content_filtered bool that gets passed around betwen renderer... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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') | chrome/common/resource_dispatcher_unittest.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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 329
330 if (response_head.replace_extension_localization_templates) { 330 if (response_head.replace_extension_localization_templates) {
331 webkit_glue::ResourceLoaderBridge::Peer* new_peer = 331 webkit_glue::ResourceLoaderBridge::Peer* new_peer =
332 ExtensionLocalizationPeer::CreateExtensionLocalizationPeer( 332 ExtensionLocalizationPeer::CreateExtensionLocalizationPeer(
333 request_info->peer, message_sender(), response_head.mime_type, 333 request_info->peer, message_sender(), response_head.mime_type,
334 request_info->url); 334 request_info->url);
335 if (new_peer) 335 if (new_peer)
336 request_info->peer = new_peer; 336 request_info->peer = new_peer;
337 } 337 }
338 338
339 request_info->peer->OnReceivedResponse(response_head, false); 339 request_info->peer->OnReceivedResponse(response_head);
340 } 340 }
341 341
342 void ResourceDispatcher::OnReceivedCachedMetadata( 342 void ResourceDispatcher::OnReceivedCachedMetadata(
343 int request_id, const std::vector<char>& data) { 343 int request_id, const std::vector<char>& data) {
344 PendingRequestInfo* request_info = GetPendingRequestInfo(request_id); 344 PendingRequestInfo* request_info = GetPendingRequestInfo(request_id);
345 if (!request_info) 345 if (!request_info)
346 return; 346 return;
347 347
348 if (data.size()) 348 if (data.size())
349 request_info->peer->OnReceivedCachedMetadata(&data.front(), data.size()); 349 request_info->peer->OnReceivedCachedMetadata(&data.front(), data.size());
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 612
613 // static 613 // static
614 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) { 614 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) {
615 while (!queue->empty()) { 615 while (!queue->empty()) {
616 IPC::Message* message = queue->front(); 616 IPC::Message* message = queue->front();
617 ReleaseResourcesInDataMessage(*message); 617 ReleaseResourcesInDataMessage(*message);
618 queue->pop_front(); 618 queue->pop_front();
619 delete message; 619 delete message;
620 } 620 }
621 } 621 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages_params.cc ('k') | chrome/common/resource_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698