Chromium Code Reviews| 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_; |