| 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 #include <map> | 5 #include <map> |
| 6 #include <set> | 6 #include <set> |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 // Need to include this before most other files because it defines | 9 // Need to include this before most other files because it defines |
| 10 // IPC_MESSAGE_LOG_ENABLED. We need to use it to define | 10 // IPC_MESSAGE_LOG_ENABLED. We need to use it to define |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 plugin_dispatchers_.find(id) != plugin_dispatchers_.end()); | 129 plugin_dispatchers_.find(id) != plugin_dispatchers_.end()); |
| 130 plugin_dispatchers_[id] = plugin_dispatcher; | 130 plugin_dispatchers_[id] = plugin_dispatcher; |
| 131 return id; | 131 return id; |
| 132 } | 132 } |
| 133 | 133 |
| 134 void PpapiDispatcher::Unregister(uint32 plugin_dispatcher_id) { | 134 void PpapiDispatcher::Unregister(uint32 plugin_dispatcher_id) { |
| 135 plugin_dispatchers_.erase(plugin_dispatcher_id); | 135 plugin_dispatchers_.erase(plugin_dispatcher_id); |
| 136 } | 136 } |
| 137 | 137 |
| 138 bool PpapiDispatcher::SendToBrowser(IPC::Message* msg) { | 138 bool PpapiDispatcher::SendToBrowser(IPC::Message* msg) { |
| 139 Send(msg); | 139 return Send(msg); |
| 140 } | 140 } |
| 141 | 141 |
| 142 IPC::Sender* PpapiDispatcher::GetBrowserSender() { | 142 IPC::Sender* PpapiDispatcher::GetBrowserSender() { |
| 143 return this; | 143 return this; |
| 144 } | 144 } |
| 145 | 145 |
| 146 std::string PpapiDispatcher::GetUILanguage() { | 146 std::string PpapiDispatcher::GetUILanguage() { |
| 147 NOTIMPLEMENTED(); | 147 NOTIMPLEMENTED(); |
| 148 return std::string(); | 148 return std::string(); |
| 149 } | 149 } |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 PpapiDispatcher ppapi_dispatcher(io_thread.message_loop_proxy()); | 262 PpapiDispatcher ppapi_dispatcher(io_thread.message_loop_proxy()); |
| 263 plugin_globals.set_plugin_proxy_delegate(&ppapi_dispatcher); | 263 plugin_globals.set_plugin_proxy_delegate(&ppapi_dispatcher); |
| 264 | 264 |
| 265 loop.Run(); | 265 loop.Run(); |
| 266 | 266 |
| 267 NaClSrpcModuleFini(); | 267 NaClSrpcModuleFini(); |
| 268 | 268 |
| 269 return 0; | 269 return 0; |
| 270 } | 270 } |
| 271 | 271 |
| OLD | NEW |