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

Unified Diff: chrome/browser/extensions/api/tab_capture/offscreen_presentation.h

Issue 1314413005: [Presentation API] 1-UA presentation support + presenter APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
Index: chrome/browser/extensions/api/tab_capture/offscreen_presentation.h
diff --git a/chrome/browser/extensions/api/tab_capture/offscreen_presentation.h b/chrome/browser/extensions/api/tab_capture/offscreen_presentation.h
index 03ca5c22810b3cbf2daf8cb9073895912bec0fe8..4eb305820f6634809baf6d874c6b2c7b38c0ee51 100644
--- a/chrome/browser/extensions/api/tab_capture/offscreen_presentation.h
+++ b/chrome/browser/extensions/api/tab_capture/offscreen_presentation.h
@@ -18,6 +18,10 @@
class Profile;
+namespace media_router {
+class OneUAPresentationRouter;
+}
+
namespace extensions {
class OffscreenPresentation; // Forward declaration. See below.
@@ -178,6 +182,9 @@ class OffscreenPresentation : protected content::WebContentsDelegate,
// OffscreenPresentation when the capturer count returns to zero.
void DieIfContentCaptureEnded();
+ // Unregisters this presentation from OneUAPresentationRouter and destroys it.
+ void Close();
whywhat 2015/09/14 15:20:39 nit: the name is very out of sync from the comment
miu 2015/09/17 00:09:20 I think it would be reasonable to name this method
imcheng 2015/09/26 01:21:56 Done.
imcheng 2015/09/26 01:21:57 Done.
+
OffscreenPresentationsOwner* const owner_;
// The starting URL for this presentation, which may or may not match the
@@ -194,6 +201,8 @@ class OffscreenPresentation : protected content::WebContentsDelegate,
// The WebContents containing the offscreen presentation page.
scoped_ptr<content::WebContents> presentation_web_contents_;
+ media_router::OneUAPresentationRouter* const one_ua_presentation_router_;
+
// The time at which Start() finished creating |presentation_web_contents_|.
base::TimeTicks start_time_;

Powered by Google App Engine
This is Rietveld 408576698