OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 const content::WebContents* contents) const final; | 160 const content::WebContents* contents) const final; |
161 void RequestMediaAccessPermission( | 161 void RequestMediaAccessPermission( |
162 content::WebContents* contents, | 162 content::WebContents* contents, |
163 const content::MediaStreamRequest& request, | 163 const content::MediaStreamRequest& request, |
164 const content::MediaResponseCallback& callback) final; | 164 const content::MediaResponseCallback& callback) final; |
165 bool CheckMediaAccessPermission(content::WebContents* contents, | 165 bool CheckMediaAccessPermission(content::WebContents* contents, |
166 const GURL& security_origin, | 166 const GURL& security_origin, |
167 content::MediaStreamType type) final; | 167 content::MediaStreamType type) final; |
168 | 168 |
169 // content::WebContentsObserver overrides | 169 // content::WebContentsObserver overrides |
170 void DidShowFullscreenWidget(int routing_id) final; | 170 void DidShowFullscreenWidget() final; |
171 | 171 |
172 private: | 172 private: |
173 bool in_fullscreen_mode() const { | 173 bool in_fullscreen_mode() const { |
174 return !non_fullscreen_size_.IsEmpty(); | 174 return !non_fullscreen_size_.IsEmpty(); |
175 } | 175 } |
176 | 176 |
177 // Called by |capture_poll_timer_| to automatically destroy this OffscreenTab | 177 // Called by |capture_poll_timer_| to automatically destroy this OffscreenTab |
178 // when the capturer count returns to zero. | 178 // when the capturer count returns to zero. |
179 void DieIfContentCaptureEnded(); | 179 void DieIfContentCaptureEnded(); |
180 | 180 |
(...skipping 29 matching lines...) Expand all Loading... |
210 // This is false until after the Start() method is called, and capture of the | 210 // This is false until after the Start() method is called, and capture of the |
211 // |offscreen_tab_web_contents_| is first detected. | 211 // |offscreen_tab_web_contents_| is first detected. |
212 bool content_capture_was_detected_; | 212 bool content_capture_was_detected_; |
213 | 213 |
214 DISALLOW_COPY_AND_ASSIGN(OffscreenTab); | 214 DISALLOW_COPY_AND_ASSIGN(OffscreenTab); |
215 }; | 215 }; |
216 | 216 |
217 } // namespace extensions | 217 } // namespace extensions |
218 | 218 |
219 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ | 219 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ |
OLD | NEW |