Hi everyone, sorry for the broad CC! I'm adding you all for OWNERS coverage across the various directories touched by this change.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
IPC: ort...@chromium.org
📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).
IPC reviewer(s): ort...@chromium.org
Reviewer source(s):
ort...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
virtual bool IsImmersive() const = 0;Can this just be in the impl class instead?
// Returns true if immersive playback is enabled.
virtual bool IsImmersivePlaybackEnabled() const;
// Requests a confirmation from the user to enter immersive playback.
virtual void RequestImmersivePlaybackConfirmation(
base::OnceCallback<
void(blink::mojom::ImmersivePlaybackConfirmationResultPtr)> callback);Are these overridden by embedders outside of `//content`? If not maybe this shouldn't be in `//content/public`?
virtual bool IsImmersive() const = 0;Can this just be in the impl class instead?
This will be used here [1] to determine a window type to instantiate.
// Returns true if immersive playback is enabled.
virtual bool IsImmersivePlaybackEnabled() const;
// Requests a confirmation from the user to enter immersive playback.
virtual void RequestImmersivePlaybackConfirmation(
base::OnceCallback<
void(blink::mojom::ImmersivePlaybackConfirmationResultPtr)> callback);Are these overridden by embedders outside of `//content`? If not maybe this shouldn't be in `//content/public`?
These will be overwritten by web_contents_delegate_android [1] and tab_web_contents_delegate_android [2].
[1] https://chromium-review.git.corp.google.com/c/chromium/src/+/7717379/12/components/embedder_support/android/delegate/web_contents_delegate_android.cc
[2] https://chromium-review.git.corp.google.com/c/chromium/src/+/7715888/15/chrome/browser/android/tab_web_contents_delegate_android.cc
RequestImmersivePlaybackConfirmation()Doesn't look like this is called by anything? Mojo reviews require all methods to have non-test usage. You'll have to add this when it's used.
RequestImmersivePlaybackConfirmation()Doesn't look like this is called by anything? Mojo reviews require all methods to have non-test usage. You'll have to add this when it's used.
The next CL [1] in the chain is adding a use case for this method. I've made it separate so it's easier to review. Should I combine these two?
[1] https://chromium-review.git.corp.google.com/c/chromium/src/+/7716732
RequestImmersivePlaybackConfirmation()Oleh Desiatyrikov (xWF)Doesn't look like this is called by anything? Mojo reviews require all methods to have non-test usage. You'll have to add this when it's used.
The next CL [1] in the chain is adding a use case for this method. I've made it separate so it's easier to review. Should I combine these two?
[1] https://chromium-review.git.corp.google.com/c/chromium/src/+/7716732
Is there going to be a browser-side check that ensure the renderer has user confirmation for immersive PiP?
What about removing it from the Mojo interface and the service and adding it in the next CL? Would that add too much to the follow up CL?