OLD | NEW |
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 #include "content/browser/permissions/permission_service_impl.h" | 5 #include "content/browser/permissions/permission_service_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
9 #include "content/public/browser/permission_manager.h" | 11 #include "content/public/browser/permission_manager.h" |
10 #include "content/public/browser/permission_type.h" | 12 #include "content/public/browser/permission_type.h" |
11 | 13 |
12 namespace content { | 14 namespace content { |
13 | 15 |
14 namespace { | 16 namespace { |
15 | 17 |
16 PermissionType PermissionNameToPermissionType(PermissionName name) { | 18 PermissionType PermissionNameToPermissionType(PermissionName name) { |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 | 358 |
357 PermissionStatusCallback callback = subscription->callback; | 359 PermissionStatusCallback callback = subscription->callback; |
358 | 360 |
359 subscription->callback.reset(); | 361 subscription->callback.reset(); |
360 pending_subscriptions_.Remove(pending_subscription_id); | 362 pending_subscriptions_.Remove(pending_subscription_id); |
361 | 363 |
362 callback.Run(status); | 364 callback.Run(status); |
363 } | 365 } |
364 | 366 |
365 } // namespace content | 367 } // namespace content |
OLD | NEW |