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

Side by Side Diff: chrome/utility/media_router/dial_device_description_parser.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_UTILITY_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_PARSER_H_
6 #define CHROME_UTILITY_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_PARSER_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11 #include "chrome/common/media_router/dial_device_description.h"
12
13 namespace media_router {
14
15 class DialDeviceDescriptionParser {
mark a. foltz 2017/03/18 18:56:57 Does this need to be a class? There are no longer
zhaobin 2017/03/20 21:25:46 Done.
16 public:
17 DialDeviceDescriptionParser();
18 ~DialDeviceDescriptionParser();
19
20 // Processes the result of getting device description. Returns true and
21 // populates corresponding fields in |dial_device_description_| if processing
22 // succeeds; otherwise returns false.
23 // |xml|: The device description xml text.
24 // |out|: Parsed device description object.
25 bool Parse(const std::string& xml, media_router::DialDeviceDescription* out);
26
27 // Removes unique identifiers and serial number from the device description
28 // for logging. |xml|: The device description.
29 std::string ScrubXmlForLogging(const std::string& xml);
30
31 DISALLOW_COPY_AND_ASSIGN(DialDeviceDescriptionParser);
32 };
33
34 } // namespace media_router
35
36 #endif // CHROME_UTILITY_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698