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

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

Issue 517853004: Move ResourceResponseHead::error_code to SyncLoadResult. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 #define IPC_MESSAGE_START ResourceMsgStart 79 #define IPC_MESSAGE_START ResourceMsgStart
80 #undef IPC_MESSAGE_EXPORT 80 #undef IPC_MESSAGE_EXPORT
81 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 81 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
82 82
83 IPC_ENUM_TRAITS_MAX_VALUE( \ 83 IPC_ENUM_TRAITS_MAX_VALUE( \
84 net::HttpResponseInfo::ConnectionInfo, \ 84 net::HttpResponseInfo::ConnectionInfo, \
85 net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1) 85 net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1)
86 86
87 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) 87 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead)
88 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo) 88 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo)
89 IPC_STRUCT_TRAITS_MEMBER(error_code)
90 IPC_STRUCT_TRAITS_MEMBER(request_start) 89 IPC_STRUCT_TRAITS_MEMBER(request_start)
91 IPC_STRUCT_TRAITS_MEMBER(response_start) 90 IPC_STRUCT_TRAITS_MEMBER(response_start)
92 IPC_STRUCT_TRAITS_END() 91 IPC_STRUCT_TRAITS_END()
93 92
94 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) 93 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult)
95 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) 94 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead)
95 IPC_STRUCT_TRAITS_MEMBER(error_code)
96 IPC_STRUCT_TRAITS_MEMBER(final_url) 96 IPC_STRUCT_TRAITS_MEMBER(final_url)
97 IPC_STRUCT_TRAITS_MEMBER(data) 97 IPC_STRUCT_TRAITS_MEMBER(data)
98 IPC_STRUCT_TRAITS_END() 98 IPC_STRUCT_TRAITS_END()
99 99
100 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseInfo) 100 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseInfo)
101 IPC_STRUCT_TRAITS_MEMBER(request_time) 101 IPC_STRUCT_TRAITS_MEMBER(request_time)
102 IPC_STRUCT_TRAITS_MEMBER(response_time) 102 IPC_STRUCT_TRAITS_MEMBER(response_time)
103 IPC_STRUCT_TRAITS_MEMBER(headers) 103 IPC_STRUCT_TRAITS_MEMBER(headers)
104 IPC_STRUCT_TRAITS_MEMBER(mime_type) 104 IPC_STRUCT_TRAITS_MEMBER(mime_type)
105 IPC_STRUCT_TRAITS_MEMBER(charset) 105 IPC_STRUCT_TRAITS_MEMBER(charset)
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 // Sent when the renderer process deletes a resource loader. 353 // Sent when the renderer process deletes a resource loader.
354 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 354 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
355 int /* request_id */) 355 int /* request_id */)
356 356
357 // Sent by the renderer when a resource request changes priority. 357 // Sent by the renderer when a resource request changes priority.
358 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, 358 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
359 int /* request_id */, 359 int /* request_id */,
360 net::RequestPriority, 360 net::RequestPriority,
361 int /* intra_priority_value */) 361 int /* intra_priority_value */)
OLDNEW
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | content/public/common/resource_response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698