| 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_BROKER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_BROKER_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_BROKER_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_BROKER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "ppapi/proxy/proxy_channel.h" | 10 #include "ppapi/proxy/proxy_channel.h" |
| 11 #include "webkit/plugins/ppapi/plugin_delegate.h" | 11 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 12 #include "webkit/plugins/ppapi/ppb_broker_impl.h" | 12 #include "webkit/plugins/ppapi/ppb_broker_impl.h" |
| 13 | 13 |
| 14 class PepperPluginDelegateImpl; | |
| 15 | |
| 16 namespace IPC { | 14 namespace IPC { |
| 17 struct ChannelHandle; | 15 struct ChannelHandle; |
| 18 } | 16 } |
| 19 | 17 |
| 20 namespace ppapi { | 18 namespace ppapi { |
| 21 namespace proxy { | 19 namespace proxy { |
| 22 class BrokerDispatcher; | 20 class BrokerDispatcher; |
| 23 } | 21 } |
| 24 } | 22 } |
| 25 | 23 |
| 26 namespace webkit { | 24 namespace webkit { |
| 27 namespace ppapi { | 25 namespace ppapi { |
| 28 class PluginModule; | 26 class PluginModule; |
| 29 } | 27 } |
| 30 } | 28 } |
| 31 | 29 |
| 30 namespace content { |
| 31 |
| 32 class PepperPluginDelegateImpl; |
| 33 |
| 32 // This object is NOT thread-safe. | 34 // This object is NOT thread-safe. |
| 33 class CONTENT_EXPORT PepperBrokerDispatcherWrapper { | 35 class CONTENT_EXPORT PepperBrokerDispatcherWrapper { |
| 34 public: | 36 public: |
| 35 PepperBrokerDispatcherWrapper(); | 37 PepperBrokerDispatcherWrapper(); |
| 36 ~PepperBrokerDispatcherWrapper(); | 38 ~PepperBrokerDispatcherWrapper(); |
| 37 | 39 |
| 38 bool Init(base::ProcessHandle plugin_process_handle, | 40 bool Init(base::ProcessHandle plugin_process_handle, |
| 39 const IPC::ChannelHandle& channel_handle); | 41 const IPC::ChannelHandle& channel_handle); |
| 40 | 42 |
| 41 int32_t SendHandleToBroker(PP_Instance instance, | 43 int32_t SendHandleToBroker(PP_Instance instance, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 85 |
| 84 // Pointer to the associated plugin module. | 86 // Pointer to the associated plugin module. |
| 85 // Always set and cleared at the same time as the module's pointer to this. | 87 // Always set and cleared at the same time as the module's pointer to this. |
| 86 webkit::ppapi::PluginModule* plugin_module_; | 88 webkit::ppapi::PluginModule* plugin_module_; |
| 87 | 89 |
| 88 base::WeakPtr<PepperPluginDelegateImpl> delegate_; | 90 base::WeakPtr<PepperPluginDelegateImpl> delegate_; |
| 89 | 91 |
| 90 DISALLOW_COPY_AND_ASSIGN(PepperBrokerImpl); | 92 DISALLOW_COPY_AND_ASSIGN(PepperBrokerImpl); |
| 91 }; | 93 }; |
| 92 | 94 |
| 95 } // namespace content |
| 96 |
| 93 #endif // CONTENT_RENDERER_PEPPER_PEPPER_BROKER_IMPL_H_ | 97 #endif // CONTENT_RENDERER_PEPPER_PEPPER_BROKER_IMPL_H_ |
| OLD | NEW |