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

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

Issue 298293010: Move resource_devtools_info from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/common/resource_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "base/process/process.h" 11 #include "base/process/process.h"
12 #include "content/common/content_param_traits_macros.h" 12 #include "content/common/content_param_traits_macros.h"
13 #include "content/common/resource_request_body.h" 13 #include "content/common/resource_request_body.h"
14 #include "content/public/common/common_param_traits.h" 14 #include "content/public/common/common_param_traits.h"
15 #include "content/public/common/resource_response.h" 15 #include "content/public/common/resource_response.h"
16 #include "ipc/ipc_message_macros.h" 16 #include "ipc/ipc_message_macros.h"
17 #include "net/base/request_priority.h" 17 #include "net/base/request_priority.h"
18 #include "net/http/http_response_info.h" 18 #include "net/http/http_response_info.h"
19 19
20 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_ 20 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_
21 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_ 21 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_
22 22
23 namespace net { 23 namespace net {
24 struct LoadTimingInfo; 24 struct LoadTimingInfo;
25 } 25 }
26 26
27 namespace webkit_glue { 27 namespace content {
28 struct ResourceDevToolsInfo; 28 struct ResourceDevToolsInfo;
29 } 29 }
30 30
31 using content::ResourceDevToolsInfo;
jam 2014/05/28 17:41:15 i believe the style guide prohibits using statemen
32
31 namespace IPC { 33 namespace IPC {
32 34
33 template <> 35 template <>
34 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { 36 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > {
35 typedef scoped_refptr<net::HttpResponseHeaders> param_type; 37 typedef scoped_refptr<net::HttpResponseHeaders> param_type;
36 static void Write(Message* m, const param_type& p); 38 static void Write(Message* m, const param_type& p);
37 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 39 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
38 static void Log(const param_type& p, std::string* l); 40 static void Log(const param_type& p, std::string* l);
39 }; 41 };
40 42
41 template <> 43 template <>
42 struct CONTENT_EXPORT ParamTraits<webkit_common::DataElement> { 44 struct CONTENT_EXPORT ParamTraits<webkit_common::DataElement> {
43 typedef webkit_common::DataElement param_type; 45 typedef webkit_common::DataElement param_type;
44 static void Write(Message* m, const param_type& p); 46 static void Write(Message* m, const param_type& p);
45 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 47 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
46 static void Log(const param_type& p, std::string* l); 48 static void Log(const param_type& p, std::string* l);
47 }; 49 };
48 50
49 template <> 51 template <>
50 struct ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> > { 52 struct ParamTraits<scoped_refptr<ResourceDevToolsInfo> > {
51 typedef scoped_refptr<webkit_glue::ResourceDevToolsInfo> param_type; 53 typedef scoped_refptr<ResourceDevToolsInfo> param_type;
52 static void Write(Message* m, const param_type& p); 54 static void Write(Message* m, const param_type& p);
53 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 55 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
54 static void Log(const param_type& p, std::string* l); 56 static void Log(const param_type& p, std::string* l);
55 }; 57 };
56 58
57 template <> 59 template <>
58 struct ParamTraits<net::LoadTimingInfo> { 60 struct ParamTraits<net::LoadTimingInfo> {
59 typedef net::LoadTimingInfo param_type; 61 typedef net::LoadTimingInfo param_type;
60 static void Write(Message* m, const param_type& p); 62 static void Write(Message* m, const param_type& p);
61 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 63 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 341
340 // Sent when the renderer process deletes a resource loader. 342 // Sent when the renderer process deletes a resource loader.
341 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 343 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
342 int /* request_id */) 344 int /* request_id */)
343 345
344 // Sent by the renderer when a resource request changes priority. 346 // Sent by the renderer when a resource request changes priority.
345 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, 347 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
346 int /* request_id */, 348 int /* request_id */,
347 net::RequestPriority, 349 net::RequestPriority,
348 int /* intra_priority_value */) 350 int /* intra_priority_value */)
OLDNEW
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/common/resource_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698