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

Side by Side 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, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_IMPL_H_
6 #define CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_IMPL_H_ 6 #define CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_IMPL_H_
7 7
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const mojo::Callback<void(PermissionStatus)>& callback) override; 54 const mojo::Callback<void(PermissionStatus)>& callback) override;
55 void RequestPermission( 55 void RequestPermission(
56 PermissionName permission, 56 PermissionName permission,
57 const mojo::String& origin, 57 const mojo::String& origin,
58 bool user_gesture, 58 bool user_gesture,
59 const mojo::Callback<void(PermissionStatus)>& callback) override; 59 const mojo::Callback<void(PermissionStatus)>& callback) override;
60 void RevokePermission( 60 void RevokePermission(
61 PermissionName permission, 61 PermissionName permission,
62 const mojo::String& origin, 62 const mojo::String& origin,
63 const mojo::Callback<void(PermissionStatus)>& callback) override; 63 const mojo::Callback<void(PermissionStatus)>& callback) override;
64 void GetNextPermissionChange(
65 PermissionName permission,
66 const mojo::String& origin,
67 PermissionStatus last_known_status,
68 const mojo::Callback<void(PermissionStatus)>& callback) override;
64 69
65 // mojo::InterfaceImpl. 70 // mojo::InterfaceImpl.
66 void OnConnectionError() override; 71 void OnConnectionError() override;
67 72
68 void OnRequestPermissionResponse(int request_id, PermissionStatus status); 73 void OnRequestPermissionResponse(
74 int request_id,
75 PermissionStatus status);
69 76
70 PermissionStatus GetPermissionStatus(PermissionType type, GURL origin); 77 PermissionStatus GetPermissionStatusFromName(PermissionName permission,
71 void ResetPermissionStatus(PermissionType type, GURL origin); 78 const GURL& origin);
79 PermissionStatus GetPermissionStatusFromType(PermissionType type,
80 const GURL& origin);
81 void ResetPermissionStatus(PermissionType type, const GURL& origin);
82
83 void OnPermissionStatusChanged(
84 const mojo::Callback<void(PermissionStatus)>& callback,
85 const int* subscription_id,
86 PermissionStatus status);
72 87
73 RequestsMap pending_requests_; 88 RequestsMap pending_requests_;
74 // context_ owns |this|. 89 // context_ owns |this|.
75 PermissionServiceContext* context_; 90 PermissionServiceContext* context_;
76 base::WeakPtrFactory<PermissionServiceImpl> weak_factory_; 91 base::WeakPtrFactory<PermissionServiceImpl> weak_factory_;
77 92
78 DISALLOW_COPY_AND_ASSIGN(PermissionServiceImpl); 93 DISALLOW_COPY_AND_ASSIGN(PermissionServiceImpl);
79 }; 94 };
80 95
81 } // namespace content 96 } // namespace content
82 97
83 #endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_IMPL_H_ 98 #endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_IMPL_H_
OLDNEW
« 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