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 // A helper class to forward the calls to MediaPermissionDispatcherImpl on UI | 5 // A helper class to forward the calls to MediaPermissionDispatcherImpl on UI |
6 // thread and have the permission status callback on the caller's original | 6 // thread and have the permission status callback on the caller's original |
7 // non-UI thread. | 7 // non-UI thread. |
8 | 8 |
9 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_PERMISSION_PROXY_H_ | 9 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_PERMISSION_PROXY_H_ |
10 #define CONTENT_RENDERER_MEDIA_MEDIA_PERMISSION_PROXY_H_ | 10 #define CONTENT_RENDERER_MEDIA_MEDIA_PERMISSION_PROXY_H_ |
11 | 11 |
| 12 #include "base/macros.h" |
12 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
13 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
14 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
15 #include "content/renderer/media/media_permission_dispatcher.h" | 16 #include "content/renderer/media/media_permission_dispatcher.h" |
16 #include "media/base/media_permission.h" | 17 #include "media/base/media_permission.h" |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
20 class CONTENT_EXPORT MediaPermissionDispatcherProxy | 21 class CONTENT_EXPORT MediaPermissionDispatcherProxy |
21 : public MediaPermissionDispatcher { | 22 : public MediaPermissionDispatcher { |
(...skipping 25 matching lines...) Expand all Loading... |
47 scoped_ptr<Core> core_; | 48 scoped_ptr<Core> core_; |
48 | 49 |
49 base::WeakPtrFactory<MediaPermissionDispatcherProxy> weak_ptr_factory_; | 50 base::WeakPtrFactory<MediaPermissionDispatcherProxy> weak_ptr_factory_; |
50 | 51 |
51 DISALLOW_COPY_AND_ASSIGN(MediaPermissionDispatcherProxy); | 52 DISALLOW_COPY_AND_ASSIGN(MediaPermissionDispatcherProxy); |
52 }; | 53 }; |
53 | 54 |
54 } // namespace content | 55 } // namespace content |
55 | 56 |
56 #endif // CONTENT_RENDERER_MEDIA_MEDIA_PERMISSION_PROXY_H_ | 57 #endif // CONTENT_RENDERER_MEDIA_MEDIA_PERMISSION_PROXY_H_ |
OLD | NEW |