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

Unified Diff: chrome/utility/media_router/dial_device_description_parser_impl.h

Issue 2745653008: [Media Router] Parse device description xml in utility process (Closed)
Patch Set: resolve code review comments from Mark Created 3 years, 9 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: chrome/utility/media_router/dial_device_description_parser_impl.h
diff --git a/chrome/utility/media_router/dial_device_description_parser_impl.h b/chrome/utility/media_router/dial_device_description_parser_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..d63f21c1d35409e6a0f77aa0506018c35724c1a7
--- /dev/null
+++ b/chrome/utility/media_router/dial_device_description_parser_impl.h
@@ -0,0 +1,32 @@
+// 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 CHROME_UTILITY_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_PARSER_IMPL_H_
+#define CHROME_UTILITY_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_PARSER_IMPL_H_
+
+#include "base/macros.h"
+#include "chrome/common/media_router/dial_device_description_parser.mojom.h"
+
+namespace media_router {
+
+class DialDeviceDescriptionParserImpl
mark a. foltz 2017/03/18 18:56:57 Please document the thread safety of this class.
zhaobin 2017/03/20 21:25:46 Done.
+ : public chrome::mojom::DialDeviceDescriptionParser {
+ public:
+ DialDeviceDescriptionParserImpl();
+ ~DialDeviceDescriptionParserImpl() override;
+
+ static void Create(chrome::mojom::DialDeviceDescriptionParserRequest request);
+
+ private:
+ // extensions::mojom::DialDeviceDescriptionParser:
+ void ParseDialDeviceDescription(
+ const std::string& device_description_xml_data,
+ const ParseDialDeviceDescriptionCallback& callback) override;
+
+ DISALLOW_COPY_AND_ASSIGN(DialDeviceDescriptionParserImpl);
+};
+
+} // namespace media_router
+
+#endif // CHROME_UTILITY_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_PARSER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698