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

Unified Diff: chrome/browser/media/protected_media_identifier_permission_context.h

Issue 1478433002: Permissions: Move common logic from DecidePermission to RequestPermission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@innoinherit
Patch Set: Rebase / git cl format Created 5 years 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/media/protected_media_identifier_permission_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/protected_media_identifier_permission_context.h
diff --git a/chrome/browser/media/protected_media_identifier_permission_context.h b/chrome/browser/media/protected_media_identifier_permission_context.h
index 594d2f85f42ae9c8423a44c4b700fc2bd1374847..9513f0fb4e7899037ae81e4723882e74f111cfae 100644
--- a/chrome/browser/media/protected_media_identifier_permission_context.h
+++ b/chrome/browser/media/protected_media_identifier_permission_context.h
@@ -38,13 +38,14 @@ class ProtectedMediaIdentifierPermissionContext
public:
explicit ProtectedMediaIdentifierPermissionContext(Profile* profile);
- // In addition to the base class flow checks that it is only code from
- // valid iframes. It also adds special logic when called through an extension.
+ // PermissionContextBase implementation.
+#if defined(OS_CHROMEOS)
void RequestPermission(content::WebContents* web_contents,
const PermissionRequestID& id,
const GURL& requesting_origin,
bool user_gesture,
const BrowserPermissionCallback& callback) override;
+#endif // defined(OS_CHROMEOS)
ContentSetting GetPermissionStatus(
const GURL& requesting_origin,
const GURL& embedding_origin) const override;
« no previous file with comments | « no previous file | chrome/browser/media/protected_media_identifier_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698