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

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

Issue 9808029: Prepending view-source: does not load the source of the userscript. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed extra logging code. Created 8 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
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 // 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 "content/common/resource_dispatcher.h" 7 #include "content/common/resource_dispatcher.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 ResourceDispatcher* dispatcher, 88 ResourceDispatcher* dispatcher,
89 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) 89 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
90 : peer_(NULL), 90 : peer_(NULL),
91 dispatcher_(dispatcher), 91 dispatcher_(dispatcher),
92 request_id_(-1), 92 request_id_(-1),
93 routing_id_(request_info.routing_id), 93 routing_id_(request_info.routing_id),
94 is_synchronous_request_(false) { 94 is_synchronous_request_(false) {
95 DCHECK(dispatcher_) << "no resource dispatcher"; 95 DCHECK(dispatcher_) << "no resource dispatcher";
96 request_.method = request_info.method; 96 request_.method = request_info.method;
97 request_.url = request_info.url; 97 request_.url = request_info.url;
98 request_.virtual_url = request_info.virtual_url;
98 request_.first_party_for_cookies = request_info.first_party_for_cookies; 99 request_.first_party_for_cookies = request_info.first_party_for_cookies;
99 request_.referrer = request_info.referrer; 100 request_.referrer = request_info.referrer;
100 request_.referrer_policy = request_info.referrer_policy; 101 request_.referrer_policy = request_info.referrer_policy;
101 request_.headers = request_info.headers; 102 request_.headers = request_info.headers;
102 request_.load_flags = request_info.load_flags; 103 request_.load_flags = request_info.load_flags;
103 request_.origin_pid = request_info.requestor_pid; 104 request_.origin_pid = request_info.requestor_pid;
104 request_.resource_type = request_info.request_type; 105 request_.resource_type = request_info.request_type;
105 request_.request_context = request_info.request_context; 106 request_.request_context = request_info.request_context;
106 request_.appcache_host_id = request_info.appcache_host_id; 107 request_.appcache_host_id = request_info.appcache_host_id;
107 request_.download_to_file = request_info.download_to_file; 108 request_.download_to_file = request_info.download_to_file;
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 699
699 // static 700 // static
700 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) { 701 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) {
701 while (!queue->empty()) { 702 while (!queue->empty()) {
702 IPC::Message* message = queue->front(); 703 IPC::Message* message = queue->front();
703 ReleaseResourcesInDataMessage(*message); 704 ReleaseResourcesInDataMessage(*message);
704 queue->pop_front(); 705 queue->pop_front();
705 delete message; 706 delete message;
706 } 707 }
707 } 708 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698