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

Side by Side Diff: chrome/utility/media_router/dial_device_description_parser_impl.h

Issue 2867713002: Use OnceCallback on Mojo interfaces in //chrome/common/media_router (Closed)
Patch Set: rebase Created 3 years, 6 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_UTILITY_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_PARSER_IMPL_H_ 5 #ifndef CHROME_UTILITY_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_PARSER_IMPL_H_
6 #define CHROME_UTILITY_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_PARSER_IMPL_H_ 6 #define CHROME_UTILITY_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_PARSER_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/common/media_router/mojo/dial_device_description_parser.mojom.h " 9 #include "chrome/common/media_router/mojo/dial_device_description_parser.mojom.h "
10 #include "services/service_manager/public/cpp/bind_source_info.h" 10 #include "services/service_manager/public/cpp/bind_source_info.h"
(...skipping 11 matching lines...) Expand all
22 22
23 static void Create(const service_manager::BindSourceInfo& source_info, 23 static void Create(const service_manager::BindSourceInfo& source_info,
24 chrome::mojom::DialDeviceDescriptionParserRequest request); 24 chrome::mojom::DialDeviceDescriptionParserRequest request);
25 25
26 private: 26 private:
27 friend class DialDeviceDescriptionParserImplTest; 27 friend class DialDeviceDescriptionParserImplTest;
28 28
29 // extensions::mojom::DialDeviceDescriptionParser: 29 // extensions::mojom::DialDeviceDescriptionParser:
30 void ParseDialDeviceDescription( 30 void ParseDialDeviceDescription(
31 const std::string& device_description_xml_data, 31 const std::string& device_description_xml_data,
32 const ParseDialDeviceDescriptionCallback& callback) override; 32 ParseDialDeviceDescriptionCallback callback) override;
33 33
34 // Processes the result of getting device description. Returns valid 34 // Processes the result of getting device description. Returns valid
35 // DialDeviceDescriptionPtr if processing succeeds; otherwise returns nullptr. 35 // DialDeviceDescriptionPtr if processing succeeds; otherwise returns nullptr.
36 // |xml|: The device description xml text. 36 // |xml|: The device description xml text.
37 chrome::mojom::DialDeviceDescriptionPtr Parse(const std::string& xml); 37 chrome::mojom::DialDeviceDescriptionPtr Parse(const std::string& xml);
38 38
39 base::ThreadChecker thread_checker_; 39 base::ThreadChecker thread_checker_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(DialDeviceDescriptionParserImpl); 41 DISALLOW_COPY_AND_ASSIGN(DialDeviceDescriptionParserImpl);
42 }; 42 };
43 43
44 } // namespace media_router 44 } // namespace media_router
45 45
46 #endif // CHROME_UTILITY_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_PARSER_IMPL_H_ 46 #endif // CHROME_UTILITY_MEDIA_ROUTER_DIAL_DEVICE_DESCRIPTION_PARSER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698