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

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

Issue 12321055: Revert 183382 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1418/src/
Patch Set: Created 7 years, 10 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/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 // NOTE: All messages must send an |int request_id| as their first parameter. 7 // NOTE: All messages must send an |int request_id| as their first parameter.
8 8
9 // Multiply-included message file, hence no include guard. 9 // Multiply-included message file, hence no include guard.
10 #include "base/process.h" 10 #include "base/process.h"
11 #include "base/shared_memory.h" 11 #include "base/shared_memory.h"
12 #include "content/common/content_param_traits_macros.h" 12 #include "content/common/content_param_traits_macros.h"
13 #include "content/public/common/common_param_traits.h" 13 #include "content/public/common/common_param_traits.h"
14 #include "content/public/common/resource_response.h" 14 #include "content/public/common/resource_response.h"
15 #include "ipc/ipc_message_macros.h" 15 #include "ipc/ipc_message_macros.h"
16 #include "net/base/request_priority.h"
17 #include "webkit/glue/resource_request_body.h" 16 #include "webkit/glue/resource_request_body.h"
18 17
19 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_ 18 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_
20 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_ 19 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_
21 20
22 namespace webkit_glue { 21 namespace webkit_glue {
23 struct ResourceDevToolsInfo; 22 struct ResourceDevToolsInfo;
24 struct ResourceLoadTimingInfo; 23 struct ResourceLoadTimingInfo;
25 } 24 }
26 25
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 140
142 // Process ID from which this request originated, or zero if it originated 141 // Process ID from which this request originated, or zero if it originated
143 // in the renderer itself. 142 // in the renderer itself.
144 IPC_STRUCT_MEMBER(int, origin_pid) 143 IPC_STRUCT_MEMBER(int, origin_pid)
145 144
146 // What this resource load is for (main frame, sub-frame, sub-resource, 145 // What this resource load is for (main frame, sub-frame, sub-resource,
147 // object). 146 // object).
148 IPC_STRUCT_MEMBER(ResourceType::Type, resource_type) 147 IPC_STRUCT_MEMBER(ResourceType::Type, resource_type)
149 148
150 // The priority of this request. 149 // The priority of this request.
151 IPC_STRUCT_MEMBER(net::RequestPriority, priority) 150 IPC_STRUCT_MEMBER(WebKit::WebURLRequest::Priority, priority)
152 151
153 // Used by plugin->browser requests to get the correct net::URLRequestContext. 152 // Used by plugin->browser requests to get the correct net::URLRequestContext.
154 IPC_STRUCT_MEMBER(uint32, request_context) 153 IPC_STRUCT_MEMBER(uint32, request_context)
155 154
156 // Indicates which frame (or worker context) the request is being loaded into, 155 // Indicates which frame (or worker context) the request is being loaded into,
157 // or kNoHostId. 156 // or kNoHostId.
158 IPC_STRUCT_MEMBER(int, appcache_host_id) 157 IPC_STRUCT_MEMBER(int, appcache_host_id)
159 158
160 // Optional resource request body (may be null). 159 // Optional resource request body (may be null).
161 IPC_STRUCT_MEMBER(scoped_refptr<webkit_glue::ResourceRequestBody>, 160 IPC_STRUCT_MEMBER(scoped_refptr<webkit_glue::ResourceRequestBody>,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 int /* request_id */) 293 int /* request_id */)
295 294
296 // Sent by the renderer process to acknowledge receipt of a 295 // Sent by the renderer process to acknowledge receipt of a
297 // UploadProgress message. 296 // UploadProgress message.
298 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, 297 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK,
299 int /* request_id */) 298 int /* request_id */)
300 299
301 // Sent when the renderer process deletes a resource loader. 300 // Sent when the renderer process deletes a resource loader.
302 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 301 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
303 int /* request_id */) 302 int /* request_id */)
304
305 // Sent by the renderer when a resource request changes priority.
306 IPC_MESSAGE_ROUTED2(ResourceHostMsg_DidChangePriority,
307 int /* request_id */,
308 net::RequestPriority)
OLDNEW
« no previous file with comments | « content/common/resource_dispatcher.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698