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

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

Issue 2405483002: Make the request initiator Optional (Closed)
Patch Set: Introduce NullableOrigin to use for request initiator Created 4 years, 2 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
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 struct ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>> { 100 struct ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>> {
101 typedef scoped_refptr<net::ct::SignedCertificateTimestamp> param_type; 101 typedef scoped_refptr<net::ct::SignedCertificateTimestamp> param_type;
102 static void GetSize(base::PickleSizer* s, const param_type& p); 102 static void GetSize(base::PickleSizer* s, const param_type& p);
103 static void Write(base::Pickle* m, const param_type& p); 103 static void Write(base::Pickle* m, const param_type& p);
104 static bool Read(const base::Pickle* m, 104 static bool Read(const base::Pickle* m,
105 base::PickleIterator* iter, 105 base::PickleIterator* iter,
106 param_type* r); 106 param_type* r);
107 static void Log(const param_type& p, std::string* l); 107 static void Log(const param_type& p, std::string* l);
108 }; 108 };
109 109
110 template <>
111 struct ParamTraits<scoped_refptr<url::NullableOrigin>> {
nasko 2016/10/10 22:28:11 Why not place this next to the ParamTraits for url
112 typedef scoped_refptr<url::NullableOrigin> param_type;
113 static void GetSize(base::PickleSizer* s, const param_type& p);
114 static void Write(base::Pickle* m, const param_type& p);
115 static bool Read(const base::Pickle* m,
116 base::PickleIterator* iter,
117 param_type* p);
118 static void Log(const param_type& p, std::string* l);
119 };
120
110 } // namespace IPC 121 } // namespace IPC
111 122
112 #endif // CONTENT_COMMON_RESOURCE_MESSAGES_H_ 123 #endif // CONTENT_COMMON_RESOURCE_MESSAGES_H_
113 124
114 125
115 #define IPC_MESSAGE_START ResourceMsgStart 126 #define IPC_MESSAGE_START ResourceMsgStart
116 #undef IPC_MESSAGE_EXPORT 127 #undef IPC_MESSAGE_EXPORT
117 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 128 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
118 129
119 IPC_ENUM_TRAITS_MAX_VALUE( \ 130 IPC_ENUM_TRAITS_MAX_VALUE( \
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 387
377 // Sent when the renderer process deletes a resource loader. 388 // Sent when the renderer process deletes a resource loader.
378 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 389 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
379 int /* request_id */) 390 int /* request_id */)
380 391
381 // Sent by the renderer when a resource request changes priority. 392 // Sent by the renderer when a resource request changes priority.
382 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, 393 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
383 int /* request_id */, 394 int /* request_id */,
384 net::RequestPriority, 395 net::RequestPriority,
385 int /* intra_priority_value */) 396 int /* intra_priority_value */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698