| 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_HOST_HELPER_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_DEVICE_ENUMERATION_HOST_HELPER_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_DEVICE_ENUMERATION_HOST_HELPER_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_DEVICE_ENUMERATION_HOST_HELPER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "ppapi/c/dev/ppb_device_ref_dev.h" | 14 #include "ppapi/c/dev/ppb_device_ref_dev.h" |
| 15 #include "ppapi/host/host_message_context.h" |
| 15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 16 | 17 |
| 17 namespace ppapi { | 18 namespace ppapi { |
| 18 struct DeviceRefData; | 19 struct DeviceRefData; |
| 19 | 20 |
| 20 namespace host { | 21 namespace host { |
| 21 struct HostMessageContext; | |
| 22 struct ReplyMessageContext; | |
| 23 class ResourceHost; | 22 class ResourceHost; |
| 24 } | 23 } |
| 25 } | 24 |
| 25 } // namespace ppapi |
| 26 | 26 |
| 27 namespace IPC { | 27 namespace IPC { |
| 28 class Message; | 28 class Message; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace content { | 31 namespace content { |
| 32 | 32 |
| 33 // Resource hosts that support device enumeration can use this class to filter | 33 // Resource hosts that support device enumeration can use this class to filter |
| 34 // and process PpapiHostMsg_DeviceEnumeration_* messages. | 34 // and process PpapiHostMsg_DeviceEnumeration_* messages. |
| 35 // TODO(yzshen): Refactor ppapi::host::ResourceMessageFilter to support message | 35 // TODO(yzshen): Refactor ppapi::host::ResourceMessageFilter to support message |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // Non-owning pointers. | 95 // Non-owning pointers. |
| 96 ppapi::host::ResourceHost* resource_host_; | 96 ppapi::host::ResourceHost* resource_host_; |
| 97 Delegate* delegate_; | 97 Delegate* delegate_; |
| 98 | 98 |
| 99 PP_DeviceType_Dev device_type_; | 99 PP_DeviceType_Dev device_type_; |
| 100 GURL document_url_; | 100 GURL document_url_; |
| 101 | 101 |
| 102 scoped_ptr<ScopedRequest> enumerate_; | 102 scoped_ptr<ScopedRequest> enumerate_; |
| 103 scoped_ptr<ScopedRequest> monitor_; | 103 scoped_ptr<ScopedRequest> monitor_; |
| 104 | 104 |
| 105 scoped_ptr<ppapi::host::ReplyMessageContext> enumerate_devices_context_; | 105 ppapi::host::ReplyMessageContext enumerate_devices_context_; |
| 106 bool enumerate_devices_pending_; |
| 106 | 107 |
| 107 DISALLOW_COPY_AND_ASSIGN(PepperDeviceEnumerationHostHelper); | 108 DISALLOW_COPY_AND_ASSIGN(PepperDeviceEnumerationHostHelper); |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 } // namespace content | 111 } // namespace content |
| 111 | 112 |
| 112 #endif // CONTENT_RENDERER_PEPPER_PEPPER_DEVICE_ENUMERATION_HOST_HELPER_H_ | 113 #endif // CONTENT_RENDERER_PEPPER_PEPPER_DEVICE_ENUMERATION_HOST_HELPER_H_ |
| OLD | NEW |