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

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

Issue 12094085: LoadTiming in net part 7: Hooking it all up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Sync, cleanup 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
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 // Multiply-included message file, hence no include guard. 7 // Multiply-included message file, hence no include guard.
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_param_traits_macros.h" 10 #include "content/common/content_param_traits_macros.h"
11 #include "content/public/common/common_param_traits.h" 11 #include "content/public/common/common_param_traits.h"
12 #include "content/public/common/resource_response.h" 12 #include "content/public/common/resource_response.h"
13 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 #include "webkit/glue/resource_request_body.h" 14 #include "webkit/glue/resource_request_body.h"
15 15
16 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_ 16 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_
17 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_ 17 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_
18 18
19 namespace net {
20 struct LoadTimingInfo;
21 }
22
19 namespace webkit_glue { 23 namespace webkit_glue {
20 struct ResourceDevToolsInfo; 24 struct ResourceDevToolsInfo;
21 struct ResourceLoadTimingInfo;
22 } 25 }
23 26
24 namespace IPC { 27 namespace IPC {
25 28
26 template <> 29 template <>
27 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { 30 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > {
28 typedef scoped_refptr<net::HttpResponseHeaders> param_type; 31 typedef scoped_refptr<net::HttpResponseHeaders> param_type;
29 static void Write(Message* m, const param_type& p); 32 static void Write(Message* m, const param_type& p);
30 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 33 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
31 static void Log(const param_type& p, std::string* l); 34 static void Log(const param_type& p, std::string* l);
32 }; 35 };
33 36
34 template <> 37 template <>
35 struct CONTENT_EXPORT ParamTraits<webkit_base::DataElement> { 38 struct CONTENT_EXPORT ParamTraits<webkit_base::DataElement> {
36 typedef webkit_base::DataElement param_type; 39 typedef webkit_base::DataElement param_type;
37 static void Write(Message* m, const param_type& p); 40 static void Write(Message* m, const param_type& p);
38 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 41 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
39 static void Log(const param_type& p, std::string* l); 42 static void Log(const param_type& p, std::string* l);
40 }; 43 };
41 44
42 template <> 45 template <>
43 struct ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> > { 46 struct ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> > {
44 typedef scoped_refptr<webkit_glue::ResourceDevToolsInfo> param_type; 47 typedef scoped_refptr<webkit_glue::ResourceDevToolsInfo> param_type;
45 static void Write(Message* m, const param_type& p); 48 static void Write(Message* m, const param_type& p);
46 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 49 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
47 static void Log(const param_type& p, std::string* l); 50 static void Log(const param_type& p, std::string* l);
48 }; 51 };
49 52
50 template <> 53 template <>
51 struct ParamTraits<webkit_glue::ResourceLoadTimingInfo> { 54 struct ParamTraits<net::LoadTimingInfo> {
52 typedef webkit_glue::ResourceLoadTimingInfo param_type; 55 typedef net::LoadTimingInfo param_type;
53 static void Write(Message* m, const param_type& p); 56 static void Write(Message* m, const param_type& p);
54 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 57 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
55 static void Log(const param_type& p, std::string* l); 58 static void Log(const param_type& p, std::string* l);
56 }; 59 };
57 60
58 template <> 61 template <>
59 struct ParamTraits<scoped_refptr<webkit_glue::ResourceRequestBody> > { 62 struct ParamTraits<scoped_refptr<webkit_glue::ResourceRequestBody> > {
60 typedef scoped_refptr<webkit_glue::ResourceRequestBody> param_type; 63 typedef scoped_refptr<webkit_glue::ResourceRequestBody> param_type;
61 static void Write(Message* m, const param_type& p); 64 static void Write(Message* m, const param_type& p);
62 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 65 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
(...skipping 26 matching lines...) Expand all
89 IPC_STRUCT_TRAITS_MEMBER(request_time) 92 IPC_STRUCT_TRAITS_MEMBER(request_time)
90 IPC_STRUCT_TRAITS_MEMBER(response_time) 93 IPC_STRUCT_TRAITS_MEMBER(response_time)
91 IPC_STRUCT_TRAITS_MEMBER(headers) 94 IPC_STRUCT_TRAITS_MEMBER(headers)
92 IPC_STRUCT_TRAITS_MEMBER(mime_type) 95 IPC_STRUCT_TRAITS_MEMBER(mime_type)
93 IPC_STRUCT_TRAITS_MEMBER(charset) 96 IPC_STRUCT_TRAITS_MEMBER(charset)
94 IPC_STRUCT_TRAITS_MEMBER(security_info) 97 IPC_STRUCT_TRAITS_MEMBER(security_info)
95 IPC_STRUCT_TRAITS_MEMBER(content_length) 98 IPC_STRUCT_TRAITS_MEMBER(content_length)
96 IPC_STRUCT_TRAITS_MEMBER(encoded_data_length) 99 IPC_STRUCT_TRAITS_MEMBER(encoded_data_length)
97 IPC_STRUCT_TRAITS_MEMBER(appcache_id) 100 IPC_STRUCT_TRAITS_MEMBER(appcache_id)
98 IPC_STRUCT_TRAITS_MEMBER(appcache_manifest_url) 101 IPC_STRUCT_TRAITS_MEMBER(appcache_manifest_url)
99 IPC_STRUCT_TRAITS_MEMBER(connection_id)
100 IPC_STRUCT_TRAITS_MEMBER(connection_reused)
101 IPC_STRUCT_TRAITS_MEMBER(load_timing) 102 IPC_STRUCT_TRAITS_MEMBER(load_timing)
102 IPC_STRUCT_TRAITS_MEMBER(devtools_info) 103 IPC_STRUCT_TRAITS_MEMBER(devtools_info)
103 IPC_STRUCT_TRAITS_MEMBER(download_file_path) 104 IPC_STRUCT_TRAITS_MEMBER(download_file_path)
104 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_spdy) 105 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_spdy)
105 IPC_STRUCT_TRAITS_MEMBER(was_npn_negotiated) 106 IPC_STRUCT_TRAITS_MEMBER(was_npn_negotiated)
106 IPC_STRUCT_TRAITS_MEMBER(was_alternate_protocol_available) 107 IPC_STRUCT_TRAITS_MEMBER(was_alternate_protocol_available)
107 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_proxy) 108 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_proxy)
108 IPC_STRUCT_TRAITS_MEMBER(npn_negotiated_protocol) 109 IPC_STRUCT_TRAITS_MEMBER(npn_negotiated_protocol)
109 IPC_STRUCT_TRAITS_MEMBER(socket_address) 110 IPC_STRUCT_TRAITS_MEMBER(socket_address)
110 IPC_STRUCT_TRAITS_END() 111 IPC_STRUCT_TRAITS_END()
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 int /* request_id */) 292 int /* request_id */)
292 293
293 // Sent by the renderer process to acknowledge receipt of a 294 // Sent by the renderer process to acknowledge receipt of a
294 // UploadProgress message. 295 // UploadProgress message.
295 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, 296 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK,
296 int /* request_id */) 297 int /* request_id */)
297 298
298 // Sent when the renderer process deletes a resource loader. 299 // Sent when the renderer process deletes a resource loader.
299 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 300 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
300 int /* request_id */) 301 int /* request_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698