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

Unified Diff: chrome/browser/content_settings/permission_context_base.h

Issue 864753007: media: Use PlatformVerificationDialog in PermissionContextBase on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: chrome/browser/content_settings/permission_context_base.h
diff --git a/chrome/browser/content_settings/permission_context_base.h b/chrome/browser/content_settings/permission_context_base.h
index d2370c7a585f9fbc5d92243d18fb7d92ba4b9694..b7dfa5692eeee1297030d39eb2945143abdfb159 100644
--- a/chrome/browser/content_settings/permission_context_base.h
+++ b/chrome/browser/content_settings/permission_context_base.h
@@ -15,6 +15,10 @@
#include "components/keyed_service/core/keyed_service.h"
#include "url/gurl.h"
+#if defined(OS_CHROMEOS)
+#include "chrome/browser/chromeos/attestation/platform_verification_flow.h"
+#endif
+
class PermissionQueueController;
class PermissionRequestID;
class Profile;
@@ -123,6 +127,15 @@ class PermissionContextBase : public KeyedService {
// Called when a bubble is no longer used so it can be cleaned up.
void CleanUpBubble(const PermissionRequestID& id);
+#if defined(OS_CHROMEOS)
+ typedef base::Callback<void(bool /* persist */, bool /* allowed */)>
+ PermissionCallback;
+ void OnPlatformVerificationResult(
+ const PermissionCallback& permission_callback,
+ chromeos::attestation::PlatformVerificationFlow::ConsentResponse
+ response);
+#endif
+
Profile* profile_;
const ContentSettingsType permission_type_;
scoped_ptr<PermissionQueueController> permission_queue_controller_;

Powered by Google App Engine
This is Rietveld 408576698