| OLD | NEW |
| 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_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_SAFE_DIAL_DEVICE_DESCRIPTION_
PARSER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_SAFE_DIAL_DEVICE_DESCRIPTION_
PARSER_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_SAFE_DIAL_DEVICE_DESCRIPTION_
PARSER_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_SAFE_DIAL_DEVICE_DESCRIPTION_
PARSER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/optional.h" | 13 #include "base/optional.h" |
| 14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
| 15 #include "chrome/common/media_router/dial_device_description_parser.mojom.h" | 15 #include "chrome/common/media_router/mojo/dial_device_description_parser.mojom.h
" |
| 16 #include "content/public/browser/utility_process_mojo_client.h" | 16 #include "content/public/browser/utility_process_mojo_client.h" |
| 17 | 17 |
| 18 namespace media_router { | 18 namespace media_router { |
| 19 | 19 |
| 20 // SafeDialDeviceDescriptionParser parses the given device description XML file | 20 // SafeDialDeviceDescriptionParser parses the given device description XML file |
| 21 // safely via a utility process. This class runs on IO thread. | 21 // safely via a utility process. This class runs on IO thread. |
| 22 class SafeDialDeviceDescriptionParser { | 22 class SafeDialDeviceDescriptionParser { |
| 23 public: | 23 public: |
| 24 // Callback function to be invoked when utility process finishes parsing | 24 // Callback function to be invoked when utility process finishes parsing |
| 25 // device description XML. | 25 // device description XML. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 55 DeviceDescriptionCallback device_description_callback_; | 55 DeviceDescriptionCallback device_description_callback_; |
| 56 | 56 |
| 57 base::ThreadChecker thread_checker_; | 57 base::ThreadChecker thread_checker_; |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(SafeDialDeviceDescriptionParser); | 59 DISALLOW_COPY_AND_ASSIGN(SafeDialDeviceDescriptionParser); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace media_router | 62 } // namespace media_router |
| 63 | 63 |
| 64 #endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_SAFE_DIAL_DEVICE_DESCRIPTI
ON_PARSER_H_ | 64 #endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_SAFE_DIAL_DEVICE_DESCRIPTI
ON_PARSER_H_ |
| OLD | NEW |