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

Side by Side Diff: content/common/resource_messages.h

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: allow_download_(true) Created 8 years, 7 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
« no previous file with comments | « content/common/resource_dispatcher_unittest.cc ('k') | content/common/view_messages.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 // IPC messages for resource loading. 5 // IPC messages for resource loading.
6 6
7 // Multiply-included message file, hence no include guard. 7 // Multiply-included message file, hence no include guard.
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "content/public/common/common_param_traits.h" 9 #include "content/public/common/common_param_traits.h"
10 #include "content/public/common/resource_response.h" 10 #include "content/public/common/resource_response.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 IPC_STRUCT_MEMBER(int64, parent_frame_id) 115 IPC_STRUCT_MEMBER(int64, parent_frame_id)
116 116
117 IPC_STRUCT_MEMBER(content::PageTransition, transition_type) 117 IPC_STRUCT_MEMBER(content::PageTransition, transition_type)
118 118
119 // The following two members identify a previous request that has been 119 // The following two members identify a previous request that has been
120 // created before this navigation has been transferred to a new render view. 120 // created before this navigation has been transferred to a new render view.
121 // This serves the purpose of recycling the old request. 121 // This serves the purpose of recycling the old request.
122 // Unless this refers to a transferred navigation, these values are -1 and -1. 122 // Unless this refers to a transferred navigation, these values are -1 and -1.
123 IPC_STRUCT_MEMBER(int, transferred_request_child_id) 123 IPC_STRUCT_MEMBER(int, transferred_request_child_id)
124 IPC_STRUCT_MEMBER(int, transferred_request_request_id) 124 IPC_STRUCT_MEMBER(int, transferred_request_request_id)
125
126 // Whether or not we should allow the URL to download.
127 IPC_STRUCT_MEMBER(bool, allow_download)
125 IPC_STRUCT_END() 128 IPC_STRUCT_END()
126 129
127 // Resource messages sent from the browser to the renderer. 130 // Resource messages sent from the browser to the renderer.
128 131
129 // Sent when the headers are available for a resource request. 132 // Sent when the headers are available for a resource request.
130 IPC_MESSAGE_ROUTED2(ResourceMsg_ReceivedResponse, 133 IPC_MESSAGE_ROUTED2(ResourceMsg_ReceivedResponse,
131 int /* request_id */, 134 int /* request_id */,
132 content::ResourceResponseHead) 135 content::ResourceResponseHead)
133 136
134 // Sent when cached metadata from a resource request is ready. 137 // Sent when cached metadata from a resource request is ready.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 int /* request_id */) 216 int /* request_id */)
214 217
215 // Sent by the renderer process to acknowledge receipt of a 218 // Sent by the renderer process to acknowledge receipt of a
216 // UploadProgress message. 219 // UploadProgress message.
217 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, 220 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK,
218 int /* request_id */) 221 int /* request_id */)
219 222
220 // Sent when the renderer process deletes a resource loader. 223 // Sent when the renderer process deletes a resource loader.
221 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 224 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
222 int /* request_id */) 225 int /* request_id */)
OLDNEW
« no previous file with comments | « content/common/resource_dispatcher_unittest.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698