OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_PEPPER_PEPPER_DEVICE_ENUMERATION_EVENT_HANDLER_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_DEVICE_ENUMERATION_EVENT_HANDLER_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_DEVICE_ENUMERATION_EVENT_HANDLER_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_DEVICE_ENUMERATION_EVENT_HANDLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "content/renderer/media/media_stream_dispatcher_eventhandler.h" | 11 #include "content/renderer/media/media_stream_dispatcher_eventhandler.h" |
12 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" | 12 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
13 #include "webkit/plugins/ppapi/plugin_delegate.h" | 13 #include "content/renderer/pepper/plugin_delegate.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class PepperDeviceEnumerationEventHandler | 17 class PepperDeviceEnumerationEventHandler |
18 : public MediaStreamDispatcherEventHandler, | 18 : public MediaStreamDispatcherEventHandler, |
19 public base::SupportsWeakPtr<PepperDeviceEnumerationEventHandler> { | 19 public base::SupportsWeakPtr<PepperDeviceEnumerationEventHandler> { |
20 public: | 20 public: |
21 PepperDeviceEnumerationEventHandler(); | 21 PepperDeviceEnumerationEventHandler(); |
22 virtual ~PepperDeviceEnumerationEventHandler(); | 22 virtual ~PepperDeviceEnumerationEventHandler(); |
23 | 23 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 typedef std::map<int, PepperPluginDelegateImpl::OpenDeviceCallback> | 70 typedef std::map<int, PepperPluginDelegateImpl::OpenDeviceCallback> |
71 OpenCallbackMap; | 71 OpenCallbackMap; |
72 OpenCallbackMap open_callbacks_; | 72 OpenCallbackMap open_callbacks_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(PepperDeviceEnumerationEventHandler); | 74 DISALLOW_COPY_AND_ASSIGN(PepperDeviceEnumerationEventHandler); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace content | 77 } // namespace content |
78 | 78 |
79 #endif // CONTENT_RENDERER_PEPPER_PEPPER_DEVICE_ENUMERATION_EVENT_HANDLER_H_ | 79 #endif // CONTENT_RENDERER_PEPPER_PEPPER_DEVICE_ENUMERATION_EVENT_HANDLER_H_ |
OLD | NEW |