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

Unified Diff: extensions/renderer/api/display_source/display_source_session.h

Issue 1540563002: [chrome.displaySource] Add WiFi Display session class skeleton and mojo service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/extensions.gypi ('k') | extensions/renderer/api/display_source/display_source_session.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.h
diff --git a/extensions/renderer/api/display_source/display_source_session.h b/extensions/renderer/api/display_source/display_source_session.h
index b10dce9ead123cd369dbc9c2351649ffceff62c1..2c4053cb65e0e0d08bdb7dfdbf9f8a4599ff4f8b 100644
--- a/extensions/renderer/api/display_source/display_source_session.h
+++ b/extensions/renderer/api/display_source/display_source_session.h
@@ -10,9 +10,14 @@
#include "extensions/common/api/display_source.h"
#include "third_party/WebKit/public/web/WebDOMMediaStreamTrack.h"
+namespace content {
+class RenderFrame;
+}
+
namespace extensions {
using DisplaySourceAuthInfo = api::display_source::AuthenticationInfo;
+using DisplaySourceAuthMethod = api::display_source::AuthenticationMethod;
using DisplaySourceErrorType = api::display_source::ErrorType;
// This class represents a generic display source session interface.
@@ -78,13 +83,22 @@ class DisplaySourceSession {
DISALLOW_COPY_AND_ASSIGN(DisplaySourceSession);
};
+struct DisplaySourceSessionParams {
+ DisplaySourceSessionParams();
+ ~DisplaySourceSessionParams();
+
+ int sink_id;
+ blink::WebMediaStreamTrack video_track;
+ blink::WebMediaStreamTrack audio_track;
+ DisplaySourceAuthMethod auth_method;
+ std::string auth_data;
+ content::RenderFrame* render_frame;
+};
+
class DisplaySourceSessionFactory {
public:
static scoped_ptr<DisplaySourceSession> CreateSession(
- int sink_id,
- const blink::WebMediaStreamTrack& video_track,
- const blink::WebMediaStreamTrack& audio_track,
- scoped_ptr<DisplaySourceAuthInfo> auth_info);
+ const DisplaySourceSessionParams& params);
private:
DISALLOW_COPY_AND_ASSIGN(DisplaySourceSessionFactory);
};
« no previous file with comments | « extensions/extensions.gypi ('k') | extensions/renderer/api/display_source/display_source_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698