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 #ifndef CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_CONTEXT_H_ | 5 #ifndef CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_CONTEXT_H_ |
6 #define CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_CONTEXT_H_ | 6 #define CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_CONTEXT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_vector.h" | |
10 #include "content/public/browser/permission_type.h" | 9 #include "content/public/browser/permission_type.h" |
11 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
12 #include "mojo/public/cpp/bindings/interface_request.h" | 11 #include "mojo/public/cpp/bindings/interface_request.h" |
13 | 12 |
14 namespace blink { | 13 namespace blink { |
15 namespace mojom { | 14 namespace mojom { |
16 class PermissionObserver; | 15 class PermissionObserver; |
17 class PermissionService; | 16 class PermissionService; |
18 } | 17 } |
19 } | 18 } |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 std::vector<std::unique_ptr<PermissionServiceImpl>> services_; | 74 std::vector<std::unique_ptr<PermissionServiceImpl>> services_; |
76 std::unordered_map<int, std::unique_ptr<PermissionSubscription>> | 75 std::unordered_map<int, std::unique_ptr<PermissionSubscription>> |
77 subscriptions_; | 76 subscriptions_; |
78 | 77 |
79 DISALLOW_COPY_AND_ASSIGN(PermissionServiceContext); | 78 DISALLOW_COPY_AND_ASSIGN(PermissionServiceContext); |
80 }; | 79 }; |
81 | 80 |
82 } // namespace content | 81 } // namespace content |
83 | 82 |
84 #endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_CONTEXT_H_ | 83 #endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_CONTEXT_H_ |
OLD | NEW |