| 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_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ | 5 #ifndef CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ |
| 6 #define CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ | 6 #define CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "ppapi/c/ppp.h" | 10 #include "ppapi/c/ppp.h" |
| 11 #include "ppapi/proxy/broker_dispatcher.h" | 11 #include "ppapi/proxy/broker_dispatcher.h" |
| 12 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" | 12 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" |
| 13 | 13 |
| 14 namespace content { |
| 15 |
| 14 // Wrapper around a BrokerDispatcher that provides the necessary integration | 16 // Wrapper around a BrokerDispatcher that provides the necessary integration |
| 15 // for plugin process management. This class is to avoid direct dependencies | 17 // for plugin process management. This class is to avoid direct dependencies |
| 16 // from the PPAPI proxy on the Chrome multiprocess infrastructure. | 18 // from the PPAPI proxy on the Chrome multiprocess infrastructure. |
| 17 class BrokerProcessDispatcher | 19 class BrokerProcessDispatcher |
| 18 : public ppapi::proxy::BrokerSideDispatcher, | 20 : public ppapi::proxy::BrokerSideDispatcher, |
| 19 public base::SupportsWeakPtr<BrokerProcessDispatcher> { | 21 public base::SupportsWeakPtr<BrokerProcessDispatcher> { |
| 20 public: | 22 public: |
| 21 BrokerProcessDispatcher(PP_GetInterface_Func get_plugin_interface, | 23 BrokerProcessDispatcher(PP_GetInterface_Func get_plugin_interface, |
| 22 PP_ConnectInstance_Func connect_instance); | 24 PP_ConnectInstance_Func connect_instance); |
| 23 virtual ~BrokerProcessDispatcher(); | 25 virtual ~BrokerProcessDispatcher(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 80 |
| 79 PP_GetInterface_Func get_plugin_interface_; | 81 PP_GetInterface_Func get_plugin_interface_; |
| 80 | 82 |
| 81 const PPP_Flash_BrowserOperations_1_3* flash_browser_operations_1_3_; | 83 const PPP_Flash_BrowserOperations_1_3* flash_browser_operations_1_3_; |
| 82 const PPP_Flash_BrowserOperations_1_2* flash_browser_operations_1_2_; | 84 const PPP_Flash_BrowserOperations_1_2* flash_browser_operations_1_2_; |
| 83 const PPP_Flash_BrowserOperations_1_0* flash_browser_operations_1_0_; | 85 const PPP_Flash_BrowserOperations_1_0* flash_browser_operations_1_0_; |
| 84 | 86 |
| 85 DISALLOW_COPY_AND_ASSIGN(BrokerProcessDispatcher); | 87 DISALLOW_COPY_AND_ASSIGN(BrokerProcessDispatcher); |
| 86 }; | 88 }; |
| 87 | 89 |
| 90 } // namespace content |
| 91 |
| 88 #endif // CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ | 92 #endif // CONTENT_PPAPI_PLUGIN_BROKER_PROCESS_DISPATCHER_H_ |
| OLD | NEW |