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

Unified Diff: content/common/mutable_network_traffic_annotation_tag_struct_traits.h

Issue 2964503003: Move NetworkService mojom files to content/public/common. (Closed)
Patch Set: Merge Created 3 years, 5 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: content/common/mutable_network_traffic_annotation_tag_struct_traits.h
diff --git a/content/common/mutable_network_traffic_annotation_tag_struct_traits.h b/content/common/mutable_network_traffic_annotation_tag_struct_traits.h
deleted file mode 100644
index 55f9207059b66fc0d36b3faa6cae70aa0d19c54c..0000000000000000000000000000000000000000
--- a/content/common/mutable_network_traffic_annotation_tag_struct_traits.h
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_COMMON_MUTABLE_NETWORK_TRAFFIC_ANNOTATION_PARAM_TRAITS_H_
-#define CONTENT_COMMON_MUTABLE_NETWORK_TRAFFIC_ANNOTATION_PARAM_TRAITS_H_
-
-#include "content/common/mutable_network_traffic_annotation_tag.mojom.h"
-#include "mojo/common/common_custom_types_struct_traits.h"
-#include "net/traffic_annotation/network_traffic_annotation.h"
-
-namespace mojo {
-
-template <>
-struct StructTraits<content::mojom::MutableNetworkTrafficAnnotationTagDataView,
- net::MutableNetworkTrafficAnnotationTag> {
- static int32_t unique_id_hash_code(
- const net::MutableNetworkTrafficAnnotationTag& traffic_annotation) {
- return traffic_annotation.unique_id_hash_code;
- }
- static bool Read(
- content::mojom::MutableNetworkTrafficAnnotationTagDataView data,
- net::MutableNetworkTrafficAnnotationTag* out) {
- out->unique_id_hash_code = data.unique_id_hash_code();
- return true;
- }
-};
-
-} // namespace mojo
-
-#endif // CONTENT_COMMON_MUTABLE_NETWORK_TRAFFIC_ANNOTATION_PARAM_TRAITS_H_

Powered by Google App Engine
This is Rietveld 408576698