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

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: 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
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/webupload_data.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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 upload data (may be null).
98 IPC_STRUCT_MEMBER(scoped_refptr<net::UploadData>, upload_data) 98 IPC_STRUCT_MEMBER(scoped_refptr<WebUploadData>, upload_data)
99 99
100 IPC_STRUCT_MEMBER(bool, download_to_file) 100 IPC_STRUCT_MEMBER(bool, download_to_file)
101 101
102 // True if the request was user initiated. 102 // True if the request was user initiated.
103 IPC_STRUCT_MEMBER(bool, has_user_gesture) 103 IPC_STRUCT_MEMBER(bool, has_user_gesture)
104 104
105 // True if |frame_id| is the main frame of a RenderView. 105 // True if |frame_id| is the main frame of a RenderView.
106 IPC_STRUCT_MEMBER(bool, is_main_frame) 106 IPC_STRUCT_MEMBER(bool, is_main_frame)
107 107
108 // Identifies the frame within the RenderView that sent the request. 108 // 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 */) 211 int /* request_id */)
212 212
213 // Sent by the renderer process to acknowledge receipt of a 213 // Sent by the renderer process to acknowledge receipt of a
214 // UploadProgress message. 214 // UploadProgress message.
215 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, 215 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK,
216 int /* request_id */) 216 int /* request_id */)
217 217
218 // Sent when the renderer process deletes a resource loader. 218 // Sent when the renderer process deletes a resource loader.
219 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 219 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
220 int /* request_id */) 220 int /* request_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698