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

Side by Side Diff: chrome/browser/android/vr_shell/vr_shell.h

Issue 2902813003: VR: keep track of all pages that are recording audio/video/screen (Closed)
Patch Set: VR: keep track of all pages that are recording audio/video/screen 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_ANDROID_VR_SHELL_VR_SHELL_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 229 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
230 std::unique_ptr<VrGLThread> gl_thread_; 230 std::unique_ptr<VrGLThread> gl_thread_;
231 bool thread_started_ = false; 231 bool thread_started_ = false;
232 UiInterface* ui_; 232 UiInterface* ui_;
233 bool reprojected_rendering_; 233 bool reprojected_rendering_;
234 234
235 jobject content_surface_ = nullptr; 235 jobject content_surface_ = nullptr;
236 bool taken_surface_ = false; 236 bool taken_surface_ = false;
237 base::CancelableClosure poll_capturing_media_task_; 237 base::CancelableClosure poll_capturing_media_task_;
238 bool is_capturing_audio_ = false;
239 bool is_capturing_video_ = false;
240 bool is_capturing_screen_ = false;
241 238
242 // TODO(mthiesse): Remove the need for this to be stored here. 239 // TODO(mthiesse): Remove the need for this to be stored here.
243 // crbug.com/674594 240 // crbug.com/674594
244 gvr_context* gvr_api_; 241 gvr_context* gvr_api_;
245 242
246 // Are we currently providing a gamepad factory to the gamepad manager? 243 // Are we currently providing a gamepad factory to the gamepad manager?
247 bool gvr_gamepad_source_active_ = false; 244 bool gvr_gamepad_source_active_ = false;
248 bool cardboard_gamepad_source_active_ = false; 245 bool cardboard_gamepad_source_active_ = false;
249 246
250 // Registered fetchers, must remain alive for UpdateGamepadData calls. 247 // Registered fetchers, must remain alive for UpdateGamepadData calls.
251 // That's ok since the fetcher is only destroyed from VrShell's destructor. 248 // That's ok since the fetcher is only destroyed from VrShell's destructor.
252 device::GvrGamepadDataFetcher* gvr_gamepad_data_fetcher_ = nullptr; 249 device::GvrGamepadDataFetcher* gvr_gamepad_data_fetcher_ = nullptr;
253 device::CardboardGamepadDataFetcher* cardboard_gamepad_data_fetcher_ = 250 device::CardboardGamepadDataFetcher* cardboard_gamepad_data_fetcher_ =
254 nullptr; 251 nullptr;
255 int64_t cardboard_gamepad_timer_ = 0; 252 int64_t cardboard_gamepad_timer_ = 0;
256 253
257 base::WeakPtrFactory<VrShell> weak_ptr_factory_; 254 base::WeakPtrFactory<VrShell> weak_ptr_factory_;
258 255
259 DISALLOW_COPY_AND_ASSIGN(VrShell); 256 DISALLOW_COPY_AND_ASSIGN(VrShell);
260 }; 257 };
261 258
262 bool RegisterVrShell(JNIEnv* env); 259 bool RegisterVrShell(JNIEnv* env);
263 260
264 } // namespace vr_shell 261 } // namespace vr_shell
265 262
266 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 263 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
OLDNEW
« 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