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

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

Issue 2038813003: Making ResourceRequestBody part of //content's public API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 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
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.h" 17 #include "content/common/resource_request.h"
18 #include "content/common/resource_request_body.h" 18 #include "content/common/resource_request_body_impl.h"
19 #include "content/common/resource_request_completion_status.h" 19 #include "content/common/resource_request_completion_status.h"
20 #include "content/common/service_worker/service_worker_types.h" 20 #include "content/common/service_worker/service_worker_types.h"
21 #include "content/public/common/common_param_traits.h" 21 #include "content/public/common/common_param_traits.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/signed_certificate_timestamp.h" 25 #include "net/cert/signed_certificate_timestamp.h"
26 #include "net/http/http_response_info.h" 26 #include "net/http/http_response_info.h"
27 #include "net/nqe/network_quality_estimator.h" 27 #include "net/nqe/network_quality_estimator.h"
28 #include "net/ssl/signed_certificate_timestamp_and_status.h" 28 #include "net/ssl/signed_certificate_timestamp_and_status.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 typedef net::LoadTimingInfo param_type; 79 typedef net::LoadTimingInfo param_type;
80 static void GetSize(base::PickleSizer* s, const param_type& p); 80 static void GetSize(base::PickleSizer* s, const param_type& p);
81 static void Write(base::Pickle* m, const param_type& p); 81 static void Write(base::Pickle* m, const param_type& p);
82 static bool Read(const base::Pickle* m, 82 static bool Read(const base::Pickle* m,
83 base::PickleIterator* iter, 83 base::PickleIterator* iter,
84 param_type* r); 84 param_type* r);
85 static void Log(const param_type& p, std::string* l); 85 static void Log(const param_type& p, std::string* l);
86 }; 86 };
87 87
88 template <> 88 template <>
89 struct ParamTraits<scoped_refptr<content::ResourceRequestBody> > { 89 struct ParamTraits<scoped_refptr<content::ResourceRequestBodyImpl>> {
90 typedef scoped_refptr<content::ResourceRequestBody> param_type; 90 typedef scoped_refptr<content::ResourceRequestBodyImpl> param_type;
91 static void GetSize(base::PickleSizer* s, const param_type& p); 91 static void GetSize(base::PickleSizer* s, const param_type& p);
92 static void Write(base::Pickle* m, const param_type& p); 92 static void Write(base::Pickle* m, const param_type& p);
93 static bool Read(const base::Pickle* m, 93 static bool Read(const base::Pickle* m,
94 base::PickleIterator* iter, 94 base::PickleIterator* iter,
95 param_type* r); 95 param_type* r);
96 static void Log(const param_type& p, std::string* l); 96 static void Log(const param_type& p, std::string* l);
97 }; 97 };
98 98
99 template <> 99 template <>
100 struct ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>> { 100 struct ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>> {
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 366
367 // Sent when the renderer process deletes a resource loader. 367 // Sent when the renderer process deletes a resource loader.
368 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 368 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
369 int /* request_id */) 369 int /* request_id */)
370 370
371 // Sent by the renderer when a resource request changes priority. 371 // Sent by the renderer when a resource request changes priority.
372 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, 372 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
373 int /* request_id */, 373 int /* request_id */,
374 net::RequestPriority, 374 net::RequestPriority,
375 int /* intra_priority_value */) 375 int /* intra_priority_value */)
OLDNEW
« no previous file with comments | « content/common/page_state_serialization_unittest.cc ('k') | content/common/resource_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698