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

Unified Diff: cc/ipc/cc_param_traits.h

Issue 2893233002: Network traffic annotation added to URLLoaderImpl. (Closed)
Patch Set: Comments addressed. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: cc/ipc/cc_param_traits.h
diff --git a/cc/ipc/cc_param_traits.h b/cc/ipc/cc_param_traits.h
index d2e8b59978c9bf101ebb1989351179e46bacc749..23189b871a5ddc7929970fd1252d74df377b4b23 100644
--- a/cc/ipc/cc_param_traits.h
+++ b/cc/ipc/cc_param_traits.h
@@ -16,6 +16,7 @@
#include "cc/quads/texture_draw_quad.h"
#include "gpu/ipc/common/gpu_command_buffer_traits.h"
#include "ipc/ipc_message_macros.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
namespace cc {
class FilterOperations;
@@ -153,6 +154,29 @@ struct CC_IPC_EXPORT ParamTraits<cc::BeginFrameAck> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct CC_IPC_EXPORT ParamTraits<net::MutableNetworkTrafficAnnotationTag> {
yzshen1 2017/06/01 16:04:27 why some structure from net/ has its param traits
Ramin Halavati 2017/06/02 07:47:06 NetworkTrafficAnnotation describes a network reque
+ typedef net::MutableNetworkTrafficAnnotationTag param_type;
+ static void GetSize(base::PickleSizer* s, const param_type& p);
+ static void Write(base::Pickle* m, const param_type& p);
+ static bool Read(const base::Pickle* m,
+ base::PickleIterator* iter,
+ param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
+
+template <>
+struct CC_IPC_EXPORT
+ ParamTraits<net::MutablePartialNetworkTrafficAnnotationTag> {
+ typedef net::MutablePartialNetworkTrafficAnnotationTag param_type;
+ static void GetSize(base::PickleSizer* s, const param_type& p);
+ static void Write(base::Pickle* m, const param_type& p);
+ static bool Read(const base::Pickle* m,
+ base::PickleIterator* iter,
+ param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
+
} // namespace IPC
#endif // CC_IPC_CC_PARAM_TRAITS_H_
« no previous file with comments | « cc/ipc/DEPS ('k') | cc/ipc/cc_param_traits.cc » ('j') | cc/ipc/cc_param_traits.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698