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

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

Issue 7624031: Treat files downloaded from the address bar as "always safe" (including extensions per discussion... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « content/common/resource_dispatcher_unittest.cc ('k') | content/renderer/render_view.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 // 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/common/page_transition_types.h"
9 #include "content/common/resource_response.h" 10 #include "content/common/resource_response.h"
10 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
11 #include "net/base/upload_data.h" 12 #include "net/base/upload_data.h"
12 13
13 #define IPC_MESSAGE_START ResourceMsgStart 14 #define IPC_MESSAGE_START ResourceMsgStart
14 15
15 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::ResourceResponseInfo) 16 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::ResourceResponseInfo)
16 IPC_STRUCT_TRAITS_MEMBER(request_time) 17 IPC_STRUCT_TRAITS_MEMBER(request_time)
17 IPC_STRUCT_TRAITS_MEMBER(response_time) 18 IPC_STRUCT_TRAITS_MEMBER(response_time)
18 IPC_STRUCT_TRAITS_MEMBER(headers) 19 IPC_STRUCT_TRAITS_MEMBER(headers)
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 93
93 // True if the request was user initiated. 94 // True if the request was user initiated.
94 IPC_STRUCT_MEMBER(bool, has_user_gesture) 95 IPC_STRUCT_MEMBER(bool, has_user_gesture)
95 96
96 // True if |frame_id| is the main frame of a RenderView. 97 // True if |frame_id| is the main frame of a RenderView.
97 IPC_STRUCT_MEMBER(bool, is_main_frame) 98 IPC_STRUCT_MEMBER(bool, is_main_frame)
98 99
99 // Identifies the frame within the RenderView that sent the request. 100 // Identifies the frame within the RenderView that sent the request.
100 // -1 if unknown / invalid. 101 // -1 if unknown / invalid.
101 IPC_STRUCT_MEMBER(int64, frame_id) 102 IPC_STRUCT_MEMBER(int64, frame_id)
103
104 IPC_STRUCT_MEMBER(PageTransition::Type, transition_type)
102 IPC_STRUCT_END() 105 IPC_STRUCT_END()
103 106
104 // Resource messages sent from the browser to the renderer. 107 // Resource messages sent from the browser to the renderer.
105 108
106 // Sent when the headers are available for a resource request. 109 // Sent when the headers are available for a resource request.
107 IPC_MESSAGE_ROUTED2(ResourceMsg_ReceivedResponse, 110 IPC_MESSAGE_ROUTED2(ResourceMsg_ReceivedResponse,
108 int /* request_id */, 111 int /* request_id */,
109 ResourceResponseHead) 112 ResourceResponseHead)
110 113
111 // Sent when cached metadata from a resource request is ready. 114 // Sent when cached metadata from a resource request is ready.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 int /* request_id */) 193 int /* request_id */)
191 194
192 // Sent by the renderer process to acknowledge receipt of a 195 // Sent by the renderer process to acknowledge receipt of a
193 // UploadProgress message. 196 // UploadProgress message.
194 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, 197 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK,
195 int /* request_id */) 198 int /* request_id */)
196 199
197 // Sent when the renderer process deletes a resource loader. 200 // Sent when the renderer process deletes a resource loader.
198 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 201 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
199 int /* request_id */) 202 int /* request_id */)
OLDNEW
« no previous file with comments | « content/common/resource_dispatcher_unittest.cc ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698