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

Side by Side Diff: extensions/renderer/api/display_source/display_source_session.cc

Issue 1471243002: chrome.displaySource custom bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Report errors via 'chrome.runtime.lastError' Created 5 years 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698