| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/plugin/plugin_channel_base.h" | 5 #include "chrome/plugin/plugin_channel_base.h" |
| 6 | 6 |
| 7 #include "base/hash_tables.h" | 7 #include "base/hash_tables.h" |
| 8 #include "chrome/common/child_process.h" | 8 #include "chrome/common/child_process.h" |
| 9 #include "chrome/common/ipc_sync_message.h" | 9 #include "ipc/ipc_sync_message.h" |
| 10 | 10 |
| 11 typedef base::hash_map<std::string, scoped_refptr<PluginChannelBase> > | 11 typedef base::hash_map<std::string, scoped_refptr<PluginChannelBase> > |
| 12 PluginChannelMap; | 12 PluginChannelMap; |
| 13 | 13 |
| 14 static PluginChannelMap g_plugin_channels_; | 14 static PluginChannelMap g_plugin_channels_; |
| 15 | 15 |
| 16 | 16 |
| 17 PluginChannelBase* PluginChannelBase::GetChannel( | 17 PluginChannelBase* PluginChannelBase::GetChannel( |
| 18 const std::string& channel_name, IPC::Channel::Mode mode, | 18 const std::string& channel_name, IPC::Channel::Mode mode, |
| 19 PluginChannelFactory factory, MessageLoop* ipc_message_loop, | 19 PluginChannelFactory factory, MessageLoop* ipc_message_loop, |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 "should override in subclass if you care about control messages"; | 183 "should override in subclass if you care about control messages"; |
| 184 } | 184 } |
| 185 | 185 |
| 186 void PluginChannelBase::OnChannelError() { | 186 void PluginChannelBase::OnChannelError() { |
| 187 channel_valid_ = false; | 187 channel_valid_ = false; |
| 188 } | 188 } |
| 189 | 189 |
| 190 void PluginChannelBase::SendUnblockingOnlyDuringDispatch() { | 190 void PluginChannelBase::SendUnblockingOnlyDuringDispatch() { |
| 191 send_unblocking_only_during_dispatch_ = true; | 191 send_unblocking_only_during_dispatch_ = true; |
| 192 } | 192 } |
| OLD | NEW |