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

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

Issue 2384323003: Ensure that the web contents trying to access native VR Shell is the webcontents we created. (Closed)
Patch Set: Created 4 years, 2 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 c834ed043772a3c444e3819282f49d400f558cf1..a9ea9076f2907e1428ffc95be4b7276a5743c27b 100644
--- a/chrome/browser/android/vr_shell/vr_shell.h
+++ b/chrome/browser/android/vr_shell/vr_shell.h
@@ -21,6 +21,7 @@
namespace content {
class ContentViewCore;
+class WebContents;
}
namespace ui {
@@ -62,7 +63,8 @@ class VrShell : public device::GvrDelegate {
bool enabled);
// html/js UI hooks.
- static base::WeakPtr<VrShell> GetWeakPtr();
+ static base::WeakPtr<VrShell> GetWeakPtr(
+ const content::WebContents* web_contents);
UiScene* GetScene();
void OnDomContentsLoaded();
void SetUiTextureSize(int width, int height);
« 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