| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 ~BrokerDispatcherWrapper(); | 61 ~BrokerDispatcherWrapper(); |
| 62 | 62 |
| 63 bool Init(base::ProcessHandle plugin_process_handle, | 63 bool Init(base::ProcessHandle plugin_process_handle, |
| 64 const IPC::ChannelHandle& channel_handle); | 64 const IPC::ChannelHandle& channel_handle); |
| 65 | 65 |
| 66 int32_t SendHandleToBroker(PP_Instance instance, | 66 int32_t SendHandleToBroker(PP_Instance instance, |
| 67 base::SyncSocket::Handle handle); | 67 base::SyncSocket::Handle handle); |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 scoped_ptr<ppapi::proxy::BrokerDispatcher> dispatcher_; | 70 scoped_ptr<ppapi::proxy::BrokerDispatcher> dispatcher_; |
| 71 scoped_ptr<ppapi::proxy::ProxyChannel::Delegate> dispatcher_delegate_; |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 // This object is NOT thread-safe. | 74 // This object is NOT thread-safe. |
| 74 class PpapiBrokerImpl : public webkit::ppapi::PluginDelegate::PpapiBroker, | 75 class PpapiBrokerImpl : public webkit::ppapi::PluginDelegate::PpapiBroker, |
| 75 public base::RefCountedThreadSafe<PpapiBrokerImpl>{ | 76 public base::RefCountedThreadSafe<PpapiBrokerImpl>{ |
| 76 public: | 77 public: |
| 77 PpapiBrokerImpl(webkit::ppapi::PluginModule* plugin_module, | 78 PpapiBrokerImpl(webkit::ppapi::PluginModule* plugin_module, |
| 78 PepperPluginDelegateImpl* delegate_); | 79 PepperPluginDelegateImpl* delegate_); |
| 79 | 80 |
| 80 // PpapiBroker implementation. | 81 // PpapiBroker implementation. |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 bool is_pepper_plugin_focused_; | 344 bool is_pepper_plugin_focused_; |
| 344 | 345 |
| 345 // Set of instances to receive a notification when the enterprise policy has | 346 // Set of instances to receive a notification when the enterprise policy has |
| 346 // been updated. | 347 // been updated. |
| 347 std::set<webkit::ppapi::PluginInstance*> subscribed_to_policy_updates_; | 348 std::set<webkit::ppapi::PluginInstance*> subscribed_to_policy_updates_; |
| 348 | 349 |
| 349 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 350 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 350 }; | 351 }; |
| 351 | 352 |
| 352 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 353 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |