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

Unified Diff: chrome/browser/chromeos/attestation/platform_verification_dialog.h

Issue 881983003: media: Invoke PlatformVerificationDialog from ProtectedMediaIdentifierPermissionContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added todo + bug Created 5 years, 10 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/chromeos/attestation/platform_verification_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/attestation/platform_verification_dialog.h
diff --git a/chrome/browser/chromeos/attestation/platform_verification_dialog.h b/chrome/browser/chromeos/attestation/platform_verification_dialog.h
index e33ebd0e9fd2f4255158f7c7e9b3059b196074aa..50aef91bbaf132b8c368b918259f8ac41e2b1c7f 100644
--- a/chrome/browser/chromeos/attestation/platform_verification_dialog.h
+++ b/chrome/browser/chromeos/attestation/platform_verification_dialog.h
@@ -25,9 +25,13 @@ class PlatformVerificationDialog : public views::DialogDelegateView,
public views::StyledLabelListener,
public content::WebContentsObserver {
public:
- // Initializes a tab-modal dialog for |web_contents| and shows it.
- static void ShowDialog(
+ // Initializes a tab-modal dialog for |web_contents| and |requesting_origin|
+ // and shows it. Returns a non-owning pointer to the widget so that caller can
+ // close the dialog and cancel the request. The returned widget is only
+ // guaranteed to be valid before |callback| is called.
+ static views::Widget* ShowDialog(
content::WebContents* web_contents,
+ const GURL& requesting_origin,
const PlatformVerificationFlow::Delegate::ConsentCallback& callback);
protected:
« no previous file with comments | « no previous file | chrome/browser/chromeos/attestation/platform_verification_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698