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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 BrokerDispatcherWrapper(); | 58 BrokerDispatcherWrapper(); |
59 ~BrokerDispatcherWrapper(); | 59 ~BrokerDispatcherWrapper(); |
60 | 60 |
61 bool Init(base::ProcessHandle plugin_process_handle, | 61 bool Init(base::ProcessHandle plugin_process_handle, |
62 const IPC::ChannelHandle& channel_handle); | 62 const IPC::ChannelHandle& channel_handle); |
63 | 63 |
64 int32_t SendHandleToBroker(PP_Instance instance, | 64 int32_t SendHandleToBroker(PP_Instance instance, |
65 base::SyncSocket::Handle handle); | 65 base::SyncSocket::Handle handle); |
66 | 66 |
67 private: | 67 private: |
68 scoped_ptr<pp::proxy::BrokerDispatcher> dispatcher_; | 68 scoped_ptr<ppapi::proxy::BrokerDispatcher> dispatcher_; |
69 }; | 69 }; |
70 | 70 |
71 // This object is NOT thread-safe. | 71 // This object is NOT thread-safe. |
72 class PpapiBrokerImpl : public webkit::ppapi::PluginDelegate::PpapiBroker, | 72 class PpapiBrokerImpl : public webkit::ppapi::PluginDelegate::PpapiBroker, |
73 public base::RefCountedThreadSafe<PpapiBrokerImpl>{ | 73 public base::RefCountedThreadSafe<PpapiBrokerImpl>{ |
74 public: | 74 public: |
75 PpapiBrokerImpl(webkit::ppapi::PluginModule* plugin_module, | 75 PpapiBrokerImpl(webkit::ppapi::PluginModule* plugin_module, |
76 PepperPluginDelegateImpl* delegate_); | 76 PepperPluginDelegateImpl* delegate_); |
77 | 77 |
78 // PpapiBroker implementation. | 78 // PpapiBroker implementation. |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 bool is_pepper_plugin_focused_; | 336 bool is_pepper_plugin_focused_; |
337 | 337 |
338 // Set of instances to receive a notification when the enterprise policy has | 338 // Set of instances to receive a notification when the enterprise policy has |
339 // been updated. | 339 // been updated. |
340 std::set<webkit::ppapi::PluginInstance*> subscribed_to_policy_updates_; | 340 std::set<webkit::ppapi::PluginInstance*> subscribed_to_policy_updates_; |
341 | 341 |
342 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 342 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
343 }; | 343 }; |
344 | 344 |
345 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 345 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |