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

Unified Diff: media/mojo/common/mojo_type_trait.h

Issue 2411573002: media: Use new wrapper types for media mojo interfaces (Closed)
Patch Set: comments addressed Created 4 years, 2 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
« no previous file with comments | « media/mojo/common/media_type_converters_unittest.cc ('k') | media/mojo/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/common/mojo_type_trait.h
diff --git a/media/mojo/common/mojo_type_trait.h b/media/mojo/common/mojo_type_trait.h
deleted file mode 100644
index d945e27779c971965fa5218316b1097d6d68662f..0000000000000000000000000000000000000000
--- a/media/mojo/common/mojo_type_trait.h
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 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 MEDIA_MOJO_COMMON_MOJO_TYPE_TRAIT_H_
-#define MEDIA_MOJO_COMMON_MOJO_TYPE_TRAIT_H_
-
-#include "media/base/media_keys.h"
-#include "mojo/public/cpp/bindings/array.h"
-#include "mojo/public/cpp/bindings/string.h"
-
-namespace media {
-
-// A trait struct to help get the corresponding mojo type for a native type.
-// By default the mojo type is the same as the native type. This works well for
-// primitive types like integers.
-template <typename T>
-struct MojoTypeTrait {
- typedef T MojoType;
- static MojoType DefaultValue() { return MojoType(); }
-};
-
-// Specialization for string.
-template <>
-struct MojoTypeTrait<std::string> {
- typedef mojo::String MojoType;
- static MojoType DefaultValue() { return MojoType(); }
-};
-
-} // namespace media
-
-#endif // MEDIA_MOJO_COMMON_MOJO_TYPE_TRAIT_H_
« no previous file with comments | « media/mojo/common/media_type_converters_unittest.cc ('k') | media/mojo/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698