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

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

Issue 2893233002: Network traffic annotation added to URLLoaderImpl. (Closed)
Patch Set: Rebased. Created 3 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
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/network_traffic_annotation_param_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // IPC Messages sent between compositor instances.
6
7 #ifndef CONTENT_COMMON_NETWORK_TRAFFIC_ANNOTATION_PARAM_TRAITS_H_
8 #define CONTENT_COMMON_NETWORK_TRAFFIC_ANNOTATION_PARAM_TRAITS_H_
9
10 #include "cc/base/filter_operation.h"
11 #include "cc/ipc/cc_ipc_export.h"
12 #include "cc/ipc/cc_param_traits_macros.h"
13 #include "cc/output/compositor_frame.h"
14 #include "ipc/ipc_message_macros.h"
15 #include "net/traffic_annotation/network_traffic_annotation.h"
16
17 namespace IPC {
18
19 template <>
20 struct CC_IPC_EXPORT ParamTraits<net::MutableNetworkTrafficAnnotationTag> {
yzshen1 2017/06/02 15:06:18 Have you considered defining a mojom type and then
Ramin Halavati 2017/06/02 16:46:03 Acknowledged.
21 typedef net::MutableNetworkTrafficAnnotationTag param_type;
22 static void GetSize(base::PickleSizer* s, const param_type& p);
23 static void Write(base::Pickle* m, const param_type& p);
24 static bool Read(const base::Pickle* m,
25 base::PickleIterator* iter,
26 param_type* p);
27 static void Log(const param_type& p, std::string* l);
28 };
29
30 template <>
31 struct CC_IPC_EXPORT
32 ParamTraits<net::MutablePartialNetworkTrafficAnnotationTag> {
yzshen1 2017/06/02 15:06:18 Is this going to be used in future CLs? I notice n
Ramin Halavati 2017/06/02 16:46:03 It is not used now, and I am not sure when we woul
33 typedef net::MutablePartialNetworkTrafficAnnotationTag param_type;
34 static void GetSize(base::PickleSizer* s, const param_type& p);
35 static void Write(base::Pickle* m, const param_type& p);
36 static bool Read(const base::Pickle* m,
37 base::PickleIterator* iter,
38 param_type* p);
39 static void Log(const param_type& p, std::string* l);
40 };
41
42 } // namespace IPC
43
44 #endif // CONTENT_COMMON_NETWORK_TRAFFIC_ANNOTATION_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/network_traffic_annotation_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698