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

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

Issue 10834289: Split net::UploadData into two: for IPC and for upload handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + moved ResolveBlobRef from webkit_blob to webkit_glue Created 8 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.cc ('k') | content/public/common/common_param_traits.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"
11 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
12 #include "net/base/upload_data.h" 12 #include "webkit/glue/resource_request_body.h"
13 13
14 #define IPC_MESSAGE_START ResourceMsgStart 14 #define IPC_MESSAGE_START ResourceMsgStart
15 #undef IPC_MESSAGE_EXPORT 15 #undef IPC_MESSAGE_EXPORT
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
17 17
18 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) 18 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead)
19 IPC_STRUCT_TRAITS_PARENT(webkit_glue::ResourceResponseInfo) 19 IPC_STRUCT_TRAITS_PARENT(webkit_glue::ResourceResponseInfo)
20 IPC_STRUCT_TRAITS_MEMBER(status) 20 IPC_STRUCT_TRAITS_MEMBER(status)
21 IPC_STRUCT_TRAITS_MEMBER(request_start) 21 IPC_STRUCT_TRAITS_MEMBER(request_start)
22 IPC_STRUCT_TRAITS_MEMBER(response_start) 22 IPC_STRUCT_TRAITS_MEMBER(response_start)
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // object). 87 // object).
88 IPC_STRUCT_MEMBER(ResourceType::Type, resource_type) 88 IPC_STRUCT_MEMBER(ResourceType::Type, resource_type)
89 89
90 // Used by plugin->browser requests to get the correct net::URLRequestContext. 90 // Used by plugin->browser requests to get the correct net::URLRequestContext.
91 IPC_STRUCT_MEMBER(uint32, request_context) 91 IPC_STRUCT_MEMBER(uint32, request_context)
92 92
93 // Indicates which frame (or worker context) the request is being loaded into, 93 // Indicates which frame (or worker context) the request is being loaded into,
94 // or kNoHostId. 94 // or kNoHostId.
95 IPC_STRUCT_MEMBER(int, appcache_host_id) 95 IPC_STRUCT_MEMBER(int, appcache_host_id)
96 96
97 // Optional upload data (may be null). 97 // Optional resource request body (may be null).
98 IPC_STRUCT_MEMBER(scoped_refptr<net::UploadData>, upload_data) 98 IPC_STRUCT_MEMBER(scoped_refptr<webkit_glue::ResourceRequestBody>,
99 request_body)
99 100
100 IPC_STRUCT_MEMBER(bool, download_to_file) 101 IPC_STRUCT_MEMBER(bool, download_to_file)
101 102
102 // True if the request was user initiated. 103 // True if the request was user initiated.
103 IPC_STRUCT_MEMBER(bool, has_user_gesture) 104 IPC_STRUCT_MEMBER(bool, has_user_gesture)
104 105
105 // True if |frame_id| is the main frame of a RenderView. 106 // True if |frame_id| is the main frame of a RenderView.
106 IPC_STRUCT_MEMBER(bool, is_main_frame) 107 IPC_STRUCT_MEMBER(bool, is_main_frame)
107 108
108 // Identifies the frame within the RenderView that sent the request. 109 // Identifies the frame within the RenderView that sent the request.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 int /* request_id */) 212 int /* request_id */)
212 213
213 // Sent by the renderer process to acknowledge receipt of a 214 // Sent by the renderer process to acknowledge receipt of a
214 // UploadProgress message. 215 // UploadProgress message.
215 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, 216 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK,
216 int /* request_id */) 217 int /* request_id */)
217 218
218 // Sent when the renderer process deletes a resource loader. 219 // Sent when the renderer process deletes a resource loader.
219 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 220 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
220 int /* request_id */) 221 int /* request_id */)
OLDNEW
« no previous file with comments | « content/common/resource_dispatcher.cc ('k') | content/public/common/common_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698