OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "extensions/renderer/api/display_source/wifi_display/wifi_display_sessi
on.h" | 5 #include "extensions/renderer/api/display_source/wifi_display/wifi_display_sessi
on.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
11 #include "content/public/renderer/render_frame.h" | 11 #include "content/public/renderer/render_frame.h" |
12 #include "extensions/renderer/api/display_source/wifi_display/wifi_display_media
_manager.h" | 12 #include "extensions/renderer/api/display_source/wifi_display/wifi_display_media
_manager.h" |
13 #include "services/shell/public/cpp/interface_provider.h" | 13 #include "services/service_manager/public/cpp/interface_provider.h" |
14 #include "third_party/wds/src/libwds/public/logging.h" | 14 #include "third_party/wds/src/libwds/public/logging.h" |
15 #include "third_party/wds/src/libwds/public/media_manager.h" | 15 #include "third_party/wds/src/libwds/public/media_manager.h" |
16 | 16 |
17 namespace { | 17 namespace { |
18 const char kErrorInternal[] = "An internal error has occurred"; | 18 const char kErrorInternal[] = "An internal error has occurred"; |
19 const char kErrorTimeout[] = "Sink became unresponsive"; | 19 const char kErrorTimeout[] = "Sink became unresponsive"; |
20 | 20 |
21 static void LogWDSError(const char* format, ...) { | 21 static void LogWDSError(const char* format, ...) { |
22 va_list args; | 22 va_list args; |
23 va_start(args, format); | 23 va_start(args, format); |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 } | 217 } |
218 | 218 |
219 void WiFiDisplaySession::RunTerminateCallback( | 219 void WiFiDisplaySession::RunTerminateCallback( |
220 bool success, | 220 bool success, |
221 const std::string& error_message) { | 221 const std::string& error_message) { |
222 if (!teminate_completion_callback_.is_null()) | 222 if (!teminate_completion_callback_.is_null()) |
223 teminate_completion_callback_.Run(success, error_message); | 223 teminate_completion_callback_.Run(success, error_message); |
224 } | 224 } |
225 | 225 |
226 } // namespace extensions | 226 } // namespace extensions |
OLD | NEW |