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

Unified Diff: chrome/browser/android/vr_shell/vr_shell.h

Issue 2878893003: VR: Poll media access flags (Closed)
Patch Set: Address Comments Created 3 years, 7 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 | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell.h
diff --git a/chrome/browser/android/vr_shell/vr_shell.h b/chrome/browser/android/vr_shell/vr_shell.h
index 20572ccda6663f2427176b5138158358514b22e6..4551d5002214f5ddeb0f89ced43a0a44fcf9015e 100644
--- a/chrome/browser/android/vr_shell/vr_shell.h
+++ b/chrome/browser/android/vr_shell/vr_shell.h
@@ -181,6 +181,8 @@ class VrShell : public device::PresentingGvrDelegate,
void ProcessTabArray(JNIEnv* env, jobjectArray tabs, bool incognito);
+ void PollMediaAccessFlag();
+
bool vr_shell_enabled_;
std::unique_ptr<UiInterface> ui_;
@@ -206,6 +208,10 @@ class VrShell : public device::PresentingGvrDelegate,
bool reprojected_rendering_;
jobject content_surface_ = nullptr;
+ base::CancelableClosure poll_capturing_media_task_;
+ bool is_capturing_audio_ = false;
+ bool is_capturing_video_ = false;
+ bool is_capturing_screen_ = false;
// TODO(mthiesse): Remove the need for this to be stored here.
// crbug.com/674594
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698