OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA_E
NCODER_H_ | 5 #ifndef EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA_E
NCODER_H_ |
6 #define EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA_E
NCODER_H_ | 6 #define EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDIA_E
NCODER_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/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/move.h" | |
15 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
16 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
17 #include "extensions/renderer/api/display_source/wifi_display/wifi_display_eleme
ntary_stream_info.h" | 16 #include "extensions/renderer/api/display_source/wifi_display/wifi_display_eleme
ntary_stream_info.h" |
18 | 17 |
19 namespace extensions { | 18 namespace extensions { |
20 | 19 |
21 // This structure represents an encoded media unit such as a video frame or | 20 // This structure represents an encoded media unit such as a video frame or |
22 // a number of audio frames. | 21 // a number of audio frames. |
23 struct WiFiDisplayEncodedUnit { | 22 struct WiFiDisplayEncodedUnit { |
24 WiFiDisplayEncodedUnit(std::string data, | 23 WiFiDisplayEncodedUnit(std::string data, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 virtual ~WiFiDisplayMediaEncoder(); | 71 virtual ~WiFiDisplayMediaEncoder(); |
73 | 72 |
74 base::ThreadChecker client_thread_checker_; | 73 base::ThreadChecker client_thread_checker_; |
75 EncodedUnitCallback encoded_callback_; | 74 EncodedUnitCallback encoded_callback_; |
76 base::Closure error_callback_; | 75 base::Closure error_callback_; |
77 }; | 76 }; |
78 | 77 |
79 } // namespace extensions | 78 } // namespace extensions |
80 | 79 |
81 #endif // EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDI
A_ENCODER_H_ | 80 #endif // EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_MEDI
A_ENCODER_H_ |
OLD | NEW |