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

Unified Diff: services/video_capture/public/interfaces/device_descriptor_struct_traits.h

Issue 2502483003: [Mojo Video Capture] Cleanup naming of classes/files in services/video_capture (Closed)
Patch Set: Rebase Created 4 years, 1 month 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: services/video_capture/public/interfaces/device_descriptor_struct_traits.h
diff --git a/services/video_capture/public/interfaces/video_capture_device_descriptor_struct_traits.h b/services/video_capture/public/interfaces/device_descriptor_struct_traits.h
similarity index 74%
rename from services/video_capture/public/interfaces/video_capture_device_descriptor_struct_traits.h
rename to services/video_capture/public/interfaces/device_descriptor_struct_traits.h
index 86c74f0d8dc2d11c10ba11f50ff0e2c256f0c087..3332c921327b4c4a90e862847ec5fcbd3b9c06e1 100644
--- a/services/video_capture/public/interfaces/video_capture_device_descriptor_struct_traits.h
+++ b/services/video_capture/public/interfaces/device_descriptor_struct_traits.h
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SERVICES_VIDEO_CAPTURE_PUBLIC_INTERFACES_VIDEO_CAPTURE_DEVICE_DESCRIPTOR_STRUCT_TRAITS_H_
-#define SERVICES_VIDEO_CAPTURE_PUBLIC_INTERFACES_VIDEO_CAPTURE_DEVICE_DESCRIPTOR_STRUCT_TRAITS_H_
+#ifndef SERVICES_VIDEO_CAPTURE_PUBLIC_INTERFACES_DEVICE_DESCRIPTOR_STRUCT_TRAITS_H_
+#define SERVICES_VIDEO_CAPTURE_PUBLIC_INTERFACES_DEVICE_DESCRIPTOR_STRUCT_TRAITS_H_
#include "media/capture/video/video_capture_device_descriptor.h"
-#include "services/video_capture/public/interfaces/video_capture_device_descriptor.mojom.h"
+#include "services/video_capture/public/interfaces/device_descriptor.mojom.h"
namespace mojo {
@@ -29,7 +29,7 @@ struct EnumTraits<video_capture::mojom::VideoCaptureTransportType,
};
template <>
-struct StructTraits<video_capture::mojom::VideoCaptureDeviceDescriptorDataView,
+struct StructTraits<video_capture::mojom::DeviceDescriptorDataView,
media::VideoCaptureDeviceDescriptor> {
static const std::string& display_name(
const media::VideoCaptureDeviceDescriptor& input) {
@@ -56,11 +56,10 @@ struct StructTraits<video_capture::mojom::VideoCaptureDeviceDescriptorDataView,
return input.transport_type;
}
- static bool Read(
- video_capture::mojom::VideoCaptureDeviceDescriptorDataView data,
- media::VideoCaptureDeviceDescriptor* output);
+ static bool Read(video_capture::mojom::DeviceDescriptorDataView data,
+ media::VideoCaptureDeviceDescriptor* output);
};
} // namespace mojo
-#endif // SERVICES_VIDEO_CAPTURE_PUBLIC_INTERFACES_VIDEO_CAPTURE_DEVICE_DESCRIPTOR_STRUCT_TRAITS_H_
+#endif // SERVICES_VIDEO_CAPTURE_PUBLIC_INTERFACES_DEVICE_DESCRIPTOR_STRUCT_TRAITS_H_

Powered by Google App Engine
This is Rietveld 408576698