OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // MediaPermission implementation which dispatches queries/requests to Mojo | 5 // MediaPermission implementation which dispatches queries/requests to Mojo |
6 // PermissionService. It relies on its base class MediaPermissionDispatcher to | 6 // PermissionService. It relies on its base class MediaPermissionDispatcher to |
7 // manage pending callbacks. Non-UI threads could create | 7 // manage pending callbacks. Non-UI threads could create |
8 // MediaPermissionDispatcherProxy by calling CreateProxy such that calls will be | 8 // MediaPermissionDispatcherProxy by calling CreateProxy such that calls will be |
9 // executed on the UI thread which is where this object lives. | 9 // executed on the UI thread which is where this object lives. |
10 | 10 |
11 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_PERMISSION_DISPATCHER_IMPL_H_ | 11 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_PERMISSION_DISPATCHER_IMPL_H_ |
12 #define CONTENT_RENDERER_MEDIA_MEDIA_PERMISSION_DISPATCHER_IMPL_H_ | 12 #define CONTENT_RENDERER_MEDIA_MEDIA_PERMISSION_DISPATCHER_IMPL_H_ |
13 | 13 |
| 14 #include <stdint.h> |
| 15 |
14 #include <map> | 16 #include <map> |
15 | 17 |
| 18 #include "base/macros.h" |
16 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
17 #include "base/threading/thread_checker.h" | 20 #include "base/threading/thread_checker.h" |
18 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
19 #include "content/common/permission_service.mojom.h" | 22 #include "content/common/permission_service.mojom.h" |
20 #include "content/public/renderer/render_frame_observer.h" | 23 #include "content/public/renderer/render_frame_observer.h" |
21 #include "content/renderer/media/media_permission_dispatcher.h" | 24 #include "content/renderer/media/media_permission_dispatcher.h" |
22 #include "media/base/media_permission.h" | 25 #include "media/base/media_permission.h" |
23 | 26 |
24 namespace content { | 27 namespace content { |
25 | 28 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 PermissionServicePtr permission_service_; | 60 PermissionServicePtr permission_service_; |
58 | 61 |
59 base::WeakPtrFactory<MediaPermissionDispatcherImpl> weak_ptr_factory_; | 62 base::WeakPtrFactory<MediaPermissionDispatcherImpl> weak_ptr_factory_; |
60 | 63 |
61 DISALLOW_COPY_AND_ASSIGN(MediaPermissionDispatcherImpl); | 64 DISALLOW_COPY_AND_ASSIGN(MediaPermissionDispatcherImpl); |
62 }; | 65 }; |
63 | 66 |
64 } // namespace content | 67 } // namespace content |
65 | 68 |
66 #endif // CONTENT_RENDERER_MEDIA_MEDIA_PERMISSION_DISPATCHER_IMPL_H_ | 69 #endif // CONTENT_RENDERER_MEDIA_MEDIA_PERMISSION_DISPATCHER_IMPL_H_ |
OLD | NEW |