OLD | NEW |
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 | 10 |
11 #include <stdint.h> | 11 #include <stdint.h> |
12 | 12 |
13 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
14 #include "base/process/process.h" | 14 #include "base/process/process.h" |
15 #include "content/common/content_param_traits_macros.h" | 15 #include "content/common/content_param_traits_macros.h" |
16 #include "content/common/navigation_params.h" | 16 #include "content/common/navigation_params.h" |
17 #include "content/common/resource_request.h" | 17 #include "content/common/resource_request.h" |
18 #include "content/common/resource_request_body_impl.h" | |
19 #include "content/common/resource_request_completion_status.h" | 18 #include "content/common/resource_request_completion_status.h" |
20 #include "content/common/service_worker/service_worker_types.h" | 19 #include "content/common/service_worker/service_worker_types.h" |
21 #include "content/public/common/common_param_traits.h" | 20 #include "content/public/common/common_param_traits.h" |
| 21 #include "content/public/common/resource_request_body.h" |
22 #include "content/public/common/resource_response.h" | 22 #include "content/public/common/resource_response.h" |
23 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
24 #include "net/base/request_priority.h" | 24 #include "net/base/request_priority.h" |
25 #include "net/cert/ct_policy_status.h" | 25 #include "net/cert/ct_policy_status.h" |
26 #include "net/cert/signed_certificate_timestamp.h" | 26 #include "net/cert/signed_certificate_timestamp.h" |
27 #include "net/cert/signed_certificate_timestamp_and_status.h" | 27 #include "net/cert/signed_certificate_timestamp_and_status.h" |
28 #include "net/http/http_response_info.h" | 28 #include "net/http/http_response_info.h" |
29 #include "net/ssl/ssl_info.h" | 29 #include "net/ssl/ssl_info.h" |
30 #include "net/url_request/redirect_info.h" | 30 #include "net/url_request/redirect_info.h" |
31 #include "third_party/WebKit/public/platform/WebMixedContentContextType.h" | 31 #include "third_party/WebKit/public/platform/WebMixedContentContextType.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 typedef net::LoadTimingInfo param_type; | 103 typedef net::LoadTimingInfo param_type; |
104 static void GetSize(base::PickleSizer* s, const param_type& p); | 104 static void GetSize(base::PickleSizer* s, const param_type& p); |
105 static void Write(base::Pickle* m, const param_type& p); | 105 static void Write(base::Pickle* m, const param_type& p); |
106 static bool Read(const base::Pickle* m, | 106 static bool Read(const base::Pickle* m, |
107 base::PickleIterator* iter, | 107 base::PickleIterator* iter, |
108 param_type* r); | 108 param_type* r); |
109 static void Log(const param_type& p, std::string* l); | 109 static void Log(const param_type& p, std::string* l); |
110 }; | 110 }; |
111 | 111 |
112 template <> | 112 template <> |
113 struct ParamTraits<scoped_refptr<content::ResourceRequestBodyImpl>> { | 113 struct ParamTraits<scoped_refptr<content::ResourceRequestBody>> { |
114 typedef scoped_refptr<content::ResourceRequestBodyImpl> param_type; | 114 typedef scoped_refptr<content::ResourceRequestBody> param_type; |
115 static void GetSize(base::PickleSizer* s, const param_type& p); | 115 static void GetSize(base::PickleSizer* s, const param_type& p); |
116 static void Write(base::Pickle* m, const param_type& p); | 116 static void Write(base::Pickle* m, const param_type& p); |
117 static bool Read(const base::Pickle* m, | 117 static bool Read(const base::Pickle* m, |
118 base::PickleIterator* iter, | 118 base::PickleIterator* iter, |
119 param_type* r); | 119 param_type* r); |
120 static void Log(const param_type& p, std::string* l); | 120 static void Log(const param_type& p, std::string* l); |
121 }; | 121 }; |
122 | 122 |
123 template <> | 123 template <> |
124 struct ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>> { | 124 struct ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>> { |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 | 401 |
402 // Sent when the renderer process deletes a resource loader. | 402 // Sent when the renderer process deletes a resource loader. |
403 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 403 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
404 int /* request_id */) | 404 int /* request_id */) |
405 | 405 |
406 // Sent by the renderer when a resource request changes priority. | 406 // Sent by the renderer when a resource request changes priority. |
407 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 407 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
408 int /* request_id */, | 408 int /* request_id */, |
409 net::RequestPriority, | 409 net::RequestPriority, |
410 int /* intra_priority_value */) | 410 int /* intra_priority_value */) |
OLD | NEW |