| 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 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 LOAD_RESULT_MAX // Boundary value for UMA_HISTOGRAM_ENUMERATION. | 67 LOAD_RESULT_MAX // Boundary value for UMA_HISTOGRAM_ENUMERATION. |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 // ChildThread overrides. | 70 // ChildThread overrides. |
| 71 bool Send(IPC::Message* msg) override; | 71 bool Send(IPC::Message* msg) override; |
| 72 bool OnControlMessageReceived(const IPC::Message& msg) override; | 72 bool OnControlMessageReceived(const IPC::Message& msg) override; |
| 73 void OnChannelConnected(int32 peer_pid) override; | 73 void OnChannelConnected(int32 peer_pid) override; |
| 74 | 74 |
| 75 // PluginDispatcher::PluginDelegate implementation. | 75 // PluginDispatcher::PluginDelegate implementation. |
| 76 std::set<PP_Instance>* GetGloballySeenInstanceIDSet() override; | 76 std::set<PP_Instance>* GetGloballySeenInstanceIDSet() override; |
| 77 base::MessageLoopProxy* GetIPCMessageLoop() override; | 77 base::SingleThreadTaskRunner* GetIPCTaskRunner() override; |
| 78 base::WaitableEvent* GetShutdownEvent() override; | 78 base::WaitableEvent* GetShutdownEvent() override; |
| 79 IPC::PlatformFileForTransit ShareHandleWithRemote( | 79 IPC::PlatformFileForTransit ShareHandleWithRemote( |
| 80 base::PlatformFile handle, | 80 base::PlatformFile handle, |
| 81 base::ProcessId peer_pid, | 81 base::ProcessId peer_pid, |
| 82 bool should_close_source) override; | 82 bool should_close_source) override; |
| 83 uint32 Register(ppapi::proxy::PluginDispatcher* plugin_dispatcher) override; | 83 uint32 Register(ppapi::proxy::PluginDispatcher* plugin_dispatcher) override; |
| 84 void Unregister(uint32 plugin_dispatcher_id) override; | 84 void Unregister(uint32 plugin_dispatcher_id) override; |
| 85 | 85 |
| 86 // PluginProxyDelegate. | 86 // PluginProxyDelegate. |
| 87 // SendToBrowser() is intended to be safe to use on another thread so | 87 // SendToBrowser() is intended to be safe to use on another thread so |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); | 164 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 #if defined(COMPILER_MSVC) | 167 #if defined(COMPILER_MSVC) |
| 168 #pragma warning(pop) | 168 #pragma warning(pop) |
| 169 #endif | 169 #endif |
| 170 | 170 |
| 171 } // namespace content | 171 } // namespace content |
| 172 | 172 |
| 173 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 173 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
| OLD | NEW |