| 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_PPAPI_THREAD_H_ | 5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
| 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/process.h" | 14 #include "base/process.h" |
| 15 #include "base/scoped_native_library.h" | 15 #include "base/scoped_native_library.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "content/common/child_thread.h" | 17 #include "content/common/child_thread.h" |
| 18 #include "ppapi/c/pp_module.h" | 18 #include "ppapi/c/pp_module.h" |
| 19 #include "ppapi/c/trusted/ppp_broker.h" | 19 #include "ppapi/c/trusted/ppp_broker.h" |
| 20 #include "ppapi/proxy/plugin_dispatcher.h" | 20 #include "ppapi/proxy/plugin_dispatcher.h" |
| 21 #include "ppapi/proxy/plugin_globals.h" | 21 #include "ppapi/proxy/plugin_globals.h" |
| 22 #include "ppapi/proxy/plugin_proxy_delegate.h" | 22 #include "ppapi/proxy/plugin_proxy_delegate.h" |
| 23 | 23 |
| 24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
| 25 #include "base/win/scoped_handle.h" | 25 #include "base/win/scoped_handle.h" |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 class CommandLine; | 28 class CommandLine; |
| 29 class FilePath; | 29 class FilePath; |
| 30 class PpapiWebKitPlatformSupportImpl; | |
| 31 | 30 |
| 32 namespace IPC { | 31 namespace IPC { |
| 33 struct ChannelHandle; | 32 struct ChannelHandle; |
| 34 } | 33 } |
| 35 | 34 |
| 35 namespace content { |
| 36 |
| 37 class PpapiWebKitPlatformSupportImpl; |
| 38 |
| 36 class PpapiThread : public ChildThread, | 39 class PpapiThread : public ChildThread, |
| 37 public ppapi::proxy::PluginDispatcher::PluginDelegate, | 40 public ppapi::proxy::PluginDispatcher::PluginDelegate, |
| 38 public ppapi::proxy::PluginProxyDelegate { | 41 public ppapi::proxy::PluginProxyDelegate { |
| 39 public: | 42 public: |
| 40 PpapiThread(const CommandLine& command_line, bool is_broker); | 43 PpapiThread(const CommandLine& command_line, bool is_broker); |
| 41 virtual ~PpapiThread(); | 44 virtual ~PpapiThread(); |
| 42 | 45 |
| 43 private: | 46 private: |
| 44 // ChildThread overrides. | 47 // ChildThread overrides. |
| 45 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 48 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 scoped_ptr<PpapiWebKitPlatformSupportImpl> webkit_platform_support_; | 124 scoped_ptr<PpapiWebKitPlatformSupportImpl> webkit_platform_support_; |
| 122 | 125 |
| 123 #if defined(OS_WIN) | 126 #if defined(OS_WIN) |
| 124 // Caches the handle to the peer process if this is a broker. | 127 // Caches the handle to the peer process if this is a broker. |
| 125 base::win::ScopedHandle peer_handle_; | 128 base::win::ScopedHandle peer_handle_; |
| 126 #endif | 129 #endif |
| 127 | 130 |
| 128 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); | 131 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); |
| 129 }; | 132 }; |
| 130 | 133 |
| 134 } // namespace content |
| 135 |
| 131 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 136 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
| OLD | NEW |