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

Side by Side Diff: remoting/host/cast_extension_session.cc

Issue 1615433002: Roll WebRTC 11523:11548, Libjingle 11522:11545 (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rolling to webrtc@11548 instead to pull in a fix Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "remoting/host/cast_extension_session.h" 5 #include "remoting/host/cast_extension_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
11 #include "base/json/json_writer.h" 11 #include "base/json/json_writer.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/synchronization/waitable_event.h" 14 #include "base/synchronization/waitable_event.h"
15 #include "base/thread_task_runner_handle.h" 15 #include "base/thread_task_runner_handle.h"
16 #include "remoting/host/client_session.h" 16 #include "remoting/host/client_session.h"
17 #include "remoting/proto/control.pb.h" 17 #include "remoting/proto/control.pb.h"
18 #include "remoting/protocol/client_stub.h" 18 #include "remoting/protocol/client_stub.h"
19 #include "remoting/protocol/port_allocator_factory.h" 19 #include "remoting/protocol/port_allocator_factory.h"
20 #include "remoting/protocol/transport_context.h" 20 #include "remoting/protocol/transport_context.h"
21 #include "remoting/protocol/webrtc_video_capturer_adapter.h" 21 #include "remoting/protocol/webrtc_video_capturer_adapter.h"
22 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" 22 #include "third_party/webrtc/api/mediastreaminterface.h"
23 #include "third_party/libjingle/source/talk/app/webrtc/test/fakeconstraints.h" 23 #include "third_party/webrtc/api/test/fakeconstraints.h"
24 #include "third_party/libjingle/source/talk/app/webrtc/videosourceinterface.h" 24 #include "third_party/webrtc/api/videosourceinterface.h"
25 25
26 namespace remoting { 26 namespace remoting {
27 27
28 // Used as the type attribute of all Cast protocol::ExtensionMessages. 28 // Used as the type attribute of all Cast protocol::ExtensionMessages.
29 const char kExtensionMessageType[] = "cast_message"; 29 const char kExtensionMessageType[] = "cast_message";
30 30
31 // Top-level keys used in all extension messages between host and client. 31 // Top-level keys used in all extension messages between host and client.
32 // Must keep synced with webapp. 32 // Must keep synced with webapp.
33 const char kTopLevelData[] = "chromoting_data"; 33 const char kTopLevelData[] = "chromoting_data";
34 const char kTopLevelSubject[] = "subject"; 34 const char kTopLevelSubject[] = "subject";
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 json.SetString(kWebRtcCandidate, candidate_str); 631 json.SetString(kWebRtcCandidate, candidate_str);
632 std::string json_str; 632 std::string json_str;
633 if (!base::JSONWriter::Write(json, &json_str)) { 633 if (!base::JSONWriter::Write(json, &json_str)) {
634 LOG(ERROR) << "Failed to serialize candidate message."; 634 LOG(ERROR) << "Failed to serialize candidate message.";
635 return; 635 return;
636 } 636 }
637 SendMessageToClient(kSubjectNewCandidate, json_str); 637 SendMessageToClient(kSubjectNewCandidate, json_str);
638 } 638 }
639 639
640 } // namespace remoting 640 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/cast_extension_session.h ('k') | remoting/protocol/webrtc_connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698