OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "extensions/renderer/api/display_source/display_source_session.h" |
| 6 |
| 7 namespace extensions { |
| 8 |
| 9 DisplaySourceSession::DisplaySourceSession() |
| 10 : state_(Idle) { |
| 11 } |
| 12 |
| 13 DisplaySourceSession::~DisplaySourceSession() { |
| 14 } |
| 15 |
| 16 void DisplaySourceSession::SetCallbacks( |
| 17 const SinkIdCallback& started_callback, |
| 18 const SinkIdCallback& terminated_callback, |
| 19 const ErrorCallback& error_callback) { |
| 20 DCHECK(started_callback_.is_null()); |
| 21 DCHECK(terminated_callback_.is_null()); |
| 22 DCHECK(error_callback_.is_null()); |
| 23 |
| 24 started_callback_ = started_callback; |
| 25 terminated_callback_ = terminated_callback; |
| 26 error_callback_ = error_callback; |
| 27 } |
| 28 |
| 29 scoped_ptr<DisplaySourceSession> DisplaySourceSessionFactory::CreateSession( |
| 30 int sink_id, |
| 31 const blink::WebMediaStreamTrack& video_track, |
| 32 const blink::WebMediaStreamTrack& audio_track, |
| 33 scoped_ptr<DisplaySourceAuthInfo> auth_info) { |
| 34 return nullptr; |
| 35 } |
| 36 |
| 37 } // namespace extensions |
OLD | NEW |