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

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

Issue 1957483003: Removal of SignedCertificateTimestampStore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed constructor of SSLStatus() Created 4 years, 7 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 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_body.h" 17 #include "content/common/resource_request_body.h"
18 #include "content/common/service_worker/service_worker_types.h" 18 #include "content/common/service_worker/service_worker_types.h"
19 #include "content/public/common/common_param_traits.h" 19 #include "content/public/common/common_param_traits.h"
20 #include "content/public/common/resource_response.h" 20 #include "content/public/common/resource_response.h"
21 #include "ipc/ipc_message_macros.h" 21 #include "ipc/ipc_message_macros.h"
22 #include "net/base/request_priority.h" 22 #include "net/base/request_priority.h"
23 #include "net/cert/signed_certificate_timestamp.h"
23 #include "net/http/http_response_info.h" 24 #include "net/http/http_response_info.h"
25 #include "net/ssl/signed_certificate_timestamp_and_status.h"
24 #include "net/url_request/redirect_info.h" 26 #include "net/url_request/redirect_info.h"
25 27
26 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_ 28 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_
27 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_ 29 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_
28 30
29 namespace net { 31 namespace net {
30 struct LoadTimingInfo; 32 struct LoadTimingInfo;
31 } 33 }
32 34
33 namespace content { 35 namespace content {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 template <> 81 template <>
80 struct ParamTraits<scoped_refptr<content::ResourceRequestBody> > { 82 struct ParamTraits<scoped_refptr<content::ResourceRequestBody> > {
81 typedef scoped_refptr<content::ResourceRequestBody> param_type; 83 typedef scoped_refptr<content::ResourceRequestBody> param_type;
82 static void Write(base::Pickle* m, const param_type& p); 84 static void Write(base::Pickle* m, const param_type& p);
83 static bool Read(const base::Pickle* m, 85 static bool Read(const base::Pickle* m,
84 base::PickleIterator* iter, 86 base::PickleIterator* iter,
85 param_type* r); 87 param_type* r);
86 static void Log(const param_type& p, std::string* l); 88 static void Log(const param_type& p, std::string* l);
87 }; 89 };
88 90
91 template <>
92 struct ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp> > {
93 typedef scoped_refptr<net::ct::SignedCertificateTimestamp> param_type;
94 static void Write(base::Pickle* m, const param_type& p);
95 static bool Read(const base::Pickle* m,
96 base::PickleIterator* iter,
97 param_type* r);
98 static void Log(const param_type& p, std::string* l);
99 };
100
89 } // namespace IPC 101 } // namespace IPC
90 102
91 #endif // CONTENT_COMMON_RESOURCE_MESSAGES_H_ 103 #endif // CONTENT_COMMON_RESOURCE_MESSAGES_H_
92 104
93 105
94 #define IPC_MESSAGE_START ResourceMsgStart 106 #define IPC_MESSAGE_START ResourceMsgStart
95 #undef IPC_MESSAGE_EXPORT 107 #undef IPC_MESSAGE_EXPORT
96 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 108 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
97 109
98 IPC_ENUM_TRAITS_MAX_VALUE( \ 110 IPC_ENUM_TRAITS_MAX_VALUE( \
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_service_worker) 158 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_service_worker)
147 IPC_STRUCT_TRAITS_MEMBER(was_fallback_required_by_service_worker) 159 IPC_STRUCT_TRAITS_MEMBER(was_fallback_required_by_service_worker)
148 IPC_STRUCT_TRAITS_MEMBER(original_url_via_service_worker) 160 IPC_STRUCT_TRAITS_MEMBER(original_url_via_service_worker)
149 IPC_STRUCT_TRAITS_MEMBER(response_type_via_service_worker) 161 IPC_STRUCT_TRAITS_MEMBER(response_type_via_service_worker)
150 IPC_STRUCT_TRAITS_MEMBER(service_worker_start_time) 162 IPC_STRUCT_TRAITS_MEMBER(service_worker_start_time)
151 IPC_STRUCT_TRAITS_MEMBER(service_worker_ready_time) 163 IPC_STRUCT_TRAITS_MEMBER(service_worker_ready_time)
152 IPC_STRUCT_TRAITS_MEMBER(is_in_cache_storage) 164 IPC_STRUCT_TRAITS_MEMBER(is_in_cache_storage)
153 IPC_STRUCT_TRAITS_MEMBER(cache_storage_cache_name) 165 IPC_STRUCT_TRAITS_MEMBER(cache_storage_cache_name)
154 IPC_STRUCT_TRAITS_MEMBER(proxy_server) 166 IPC_STRUCT_TRAITS_MEMBER(proxy_server)
155 IPC_STRUCT_TRAITS_MEMBER(is_using_lofi) 167 IPC_STRUCT_TRAITS_MEMBER(is_using_lofi)
168 IPC_STRUCT_TRAITS_MEMBER(signed_certificate_timestamps)
156 IPC_STRUCT_TRAITS_END() 169 IPC_STRUCT_TRAITS_END()
157 170
158 IPC_STRUCT_TRAITS_BEGIN(net::RedirectInfo) 171 IPC_STRUCT_TRAITS_BEGIN(net::RedirectInfo)
159 IPC_STRUCT_TRAITS_MEMBER(status_code) 172 IPC_STRUCT_TRAITS_MEMBER(status_code)
160 IPC_STRUCT_TRAITS_MEMBER(new_method) 173 IPC_STRUCT_TRAITS_MEMBER(new_method)
161 IPC_STRUCT_TRAITS_MEMBER(new_url) 174 IPC_STRUCT_TRAITS_MEMBER(new_url)
162 IPC_STRUCT_TRAITS_MEMBER(new_first_party_for_cookies) 175 IPC_STRUCT_TRAITS_MEMBER(new_first_party_for_cookies)
163 IPC_STRUCT_TRAITS_MEMBER(new_referrer) 176 IPC_STRUCT_TRAITS_MEMBER(new_referrer)
164 IPC_STRUCT_TRAITS_MEMBER(referred_token_binding_host) 177 IPC_STRUCT_TRAITS_MEMBER(referred_token_binding_host)
165 IPC_STRUCT_TRAITS_END() 178 IPC_STRUCT_TRAITS_END()
166 179
180 IPC_STRUCT_TRAITS_BEGIN(net::SignedCertificateTimestampAndStatus)
181 IPC_STRUCT_TRAITS_MEMBER(sct)
182 IPC_STRUCT_TRAITS_MEMBER(status)
183 IPC_STRUCT_TRAITS_END()
184
185 IPC_ENUM_TRAITS_MAX_VALUE(net::ct::SCTVerifyStatus, net::ct::SCT_STATUS_MAX)
186
167 // Parameters for a resource request. 187 // Parameters for a resource request.
168 IPC_STRUCT_BEGIN(ResourceHostMsg_Request) 188 IPC_STRUCT_BEGIN(ResourceHostMsg_Request)
169 // The request method: GET, POST, etc. 189 // The request method: GET, POST, etc.
170 IPC_STRUCT_MEMBER(std::string, method) 190 IPC_STRUCT_MEMBER(std::string, method)
171 191
172 // The requested URL. 192 // The requested URL.
173 IPC_STRUCT_MEMBER(GURL, url) 193 IPC_STRUCT_MEMBER(GURL, url)
174 194
175 // Usually the URL of the document in the top-level window, which may be 195 // Usually the URL of the document in the top-level window, which may be
176 // checked by the third-party cookie blocking policy. Leaving it empty may 196 // checked by the third-party cookie blocking policy. Leaving it empty may
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 461
442 // Sent when the renderer process deletes a resource loader. 462 // Sent when the renderer process deletes a resource loader.
443 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 463 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
444 int /* request_id */) 464 int /* request_id */)
445 465
446 // Sent by the renderer when a resource request changes priority. 466 // Sent by the renderer when a resource request changes priority.
447 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, 467 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
448 int /* request_id */, 468 int /* request_id */,
449 net::RequestPriority, 469 net::RequestPriority,
450 int /* intra_priority_value */) 470 int /* intra_priority_value */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698