| 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 "content/renderer/browser_plugin/browser_plugin_manager.h" | 5 #include "content/renderer/browser_plugin/browser_plugin_manager.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 |
| 7 #include <memory> |
| 8 |
| 7 #include "content/common/browser_plugin/browser_plugin_constants.h" | 9 #include "content/common/browser_plugin/browser_plugin_constants.h" |
| 8 #include "content/common/browser_plugin/browser_plugin_messages.h" | 10 #include "content/common/browser_plugin/browser_plugin_messages.h" |
| 9 #include "content/common/frame_messages.h" | 11 #include "content/common/frame_messages.h" |
| 10 #include "content/public/renderer/browser_plugin_delegate.h" | 12 #include "content/public/renderer/browser_plugin_delegate.h" |
| 11 #include "content/renderer/browser_plugin/browser_plugin.h" | 13 #include "content/renderer/browser_plugin/browser_plugin.h" |
| 12 #include "content/renderer/render_thread_impl.h" | 14 #include "content/renderer/render_thread_impl.h" |
| 13 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
| 14 | 16 |
| 15 namespace content { | 17 namespace content { |
| 16 | 18 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 DCHECK(success); | 99 DCHECK(success); |
| 98 BrowserPlugin* plugin = GetBrowserPlugin(browser_plugin_instance_id); | 100 BrowserPlugin* plugin = GetBrowserPlugin(browser_plugin_instance_id); |
| 99 return plugin && plugin->OnMessageReceived(message); | 101 return plugin && plugin->OnMessageReceived(message); |
| 100 } | 102 } |
| 101 | 103 |
| 102 bool BrowserPluginManager::Send(IPC::Message* msg) { | 104 bool BrowserPluginManager::Send(IPC::Message* msg) { |
| 103 return RenderThreadImpl::current()->Send(msg); | 105 return RenderThreadImpl::current()->Send(msg); |
| 104 } | 106 } |
| 105 | 107 |
| 106 } // namespace content | 108 } // namespace content |
| OLD | NEW |