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

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..4bb66085265fa0f4567de7010bdbc867fba5f0c1 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 OffscreenPresentationManager;
+}
+
namespace extensions {
class OffscreenPresentation; // Forward declaration. See below.
@@ -178,6 +182,15 @@ class OffscreenPresentation : protected content::WebContentsDelegate,
// OffscreenPresentation when the capturer count returns to zero.
void DieIfContentCaptureEnded();
+ // Unregisters this presentation from OffscreenPresentationManager and
+ // destroys it.
+ void Destroy();
+
+ // Gets the OffscreenPresentationManager instance associated with the
miu 2015/09/27 00:22:08 To be consistent with the naming and comments in t
imcheng 2015/09/30 01:13:41 Code removed.
+ // presentation
+ // controller's BrowserContext.
+ media_router::OffscreenPresentationManager* GetOffscreenPresentationManager();
+
OffscreenPresentationsOwner* const owner_;
// The starting URL for this presentation, which may or may not match the

Powered by Google App Engine
This is Rietveld 408576698