Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1122)

Side by Side Diff: content/renderer/pepper/pepper_device_enumeration_event_handler.h

Issue 9959037: Put the Pepper stuff in the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "webkit/plugins/ppapi/plugin_delegate.h"
14 14
15 namespace content {
16
15 class PepperDeviceEnumerationEventHandler 17 class PepperDeviceEnumerationEventHandler
16 : public MediaStreamDispatcherEventHandler, 18 : public MediaStreamDispatcherEventHandler,
17 public base::SupportsWeakPtr<PepperDeviceEnumerationEventHandler> { 19 public base::SupportsWeakPtr<PepperDeviceEnumerationEventHandler> {
18 public: 20 public:
19 PepperDeviceEnumerationEventHandler(); 21 PepperDeviceEnumerationEventHandler();
20 virtual ~PepperDeviceEnumerationEventHandler(); 22 virtual ~PepperDeviceEnumerationEventHandler();
21 23
22 int RegisterEnumerateDevicesCallback( 24 int RegisterEnumerateDevicesCallback(
23 const webkit::ppapi::PluginDelegate::EnumerateDevicesCallback& callback); 25 const webkit::ppapi::PluginDelegate::EnumerateDevicesCallback& callback);
24 26
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 EnumerateCallbackMap; 71 EnumerateCallbackMap;
70 EnumerateCallbackMap enumerate_callbacks_; 72 EnumerateCallbackMap enumerate_callbacks_;
71 73
72 typedef std::map<int, PepperPluginDelegateImpl::OpenDeviceCallback> 74 typedef std::map<int, PepperPluginDelegateImpl::OpenDeviceCallback>
73 OpenCallbackMap; 75 OpenCallbackMap;
74 OpenCallbackMap open_callbacks_; 76 OpenCallbackMap open_callbacks_;
75 77
76 DISALLOW_COPY_AND_ASSIGN(PepperDeviceEnumerationEventHandler); 78 DISALLOW_COPY_AND_ASSIGN(PepperDeviceEnumerationEventHandler);
77 }; 79 };
78 80
81 } // namespace content
82
79 #endif // CONTENT_RENDERER_PEPPER_PEPPER_DEVICE_ENUMERATION_EVENT_HANDLER_H_ 83 #endif // CONTENT_RENDERER_PEPPER_PEPPER_DEVICE_ENUMERATION_EVENT_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698