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

Unified Diff: content/browser/permissions/permission_service_impl.h

Issue 990303002: Implement PermissionService::GetNextPermissionChange. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_impl
Patch Set: fix chromecast/ Created 5 years, 9 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: content/browser/permissions/permission_service_impl.h
diff --git a/content/browser/permissions/permission_service_impl.h b/content/browser/permissions/permission_service_impl.h
index 4982b0a04c10c9087f3ecaa0e09a90465faf1bd4..e3c3fb4f750055b4649d67968ed1a2922a1631a0 100644
--- a/content/browser/permissions/permission_service_impl.h
+++ b/content/browser/permissions/permission_service_impl.h
@@ -61,14 +61,29 @@ class PermissionServiceImpl : public mojo::InterfaceImpl<PermissionService> {
PermissionName permission,
const mojo::String& origin,
const mojo::Callback<void(PermissionStatus)>& callback) override;
+ void GetNextPermissionChange(
+ PermissionName permission,
+ const mojo::String& origin,
+ PermissionStatus last_known_status,
+ const mojo::Callback<void(PermissionStatus)>& callback) override;
// mojo::InterfaceImpl.
void OnConnectionError() override;
- void OnRequestPermissionResponse(int request_id, PermissionStatus status);
+ void OnRequestPermissionResponse(
+ int request_id,
+ PermissionStatus status);
+
+ PermissionStatus GetPermissionStatusFromName(PermissionName permission,
+ const GURL& origin);
+ PermissionStatus GetPermissionStatusFromType(PermissionType type,
+ const GURL& origin);
+ void ResetPermissionStatus(PermissionType type, const GURL& origin);
- PermissionStatus GetPermissionStatus(PermissionType type, GURL origin);
- void ResetPermissionStatus(PermissionType type, GURL origin);
+ void OnPermissionStatusChanged(
+ const mojo::Callback<void(PermissionStatus)>& callback,
+ const int* subscription_id,
+ PermissionStatus status);
RequestsMap pending_requests_;
// context_ owns |this|.
« no previous file with comments | « chromecast/browser/cast_permission_manager.cc ('k') | content/browser/permissions/permission_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698