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

Unified 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: Fixing nits 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/api/display_source/display_source_session.h ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api/display_source/display_source_session.cc
diff --git a/extensions/renderer/api/display_source/display_source_session.cc b/extensions/renderer/api/display_source/display_source_session.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8e66b6f2c2e38f3f521991b02c2d41dc95f51b29
--- /dev/null
+++ b/extensions/renderer/api/display_source/display_source_session.cc
@@ -0,0 +1,37 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "extensions/renderer/api/display_source/display_source_session.h"
+
+namespace extensions {
+
+DisplaySourceSession::DisplaySourceSession()
+ : state_(Idle) {
+}
+
+DisplaySourceSession::~DisplaySourceSession() {
+}
+
+void DisplaySourceSession::SetCallbacks(
+ const SinkIdCallback& started_callback,
+ const SinkIdCallback& terminated_callback,
+ const ErrorCallback& error_callback) {
+ DCHECK(started_callback_.is_null());
+ DCHECK(terminated_callback_.is_null());
+ DCHECK(error_callback_.is_null());
+
+ started_callback_ = started_callback;
+ terminated_callback_ = terminated_callback;
+ error_callback_ = error_callback;
+}
+
+scoped_ptr<DisplaySourceSession> DisplaySourceSessionFactory::CreateSession(
+ int sink_id,
+ const blink::WebMediaStreamTrack& video_track,
+ const blink::WebMediaStreamTrack& audio_track,
+ scoped_ptr<DisplaySourceAuthInfo> auth_info) {
+ return nullptr;
+}
+
+} // namespace extensions
« no previous file with comments | « extensions/renderer/api/display_source/display_source_session.h ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698