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_channel_manager.h" | 5 #include "content/renderer/browser_plugin/old/browser_plugin_channel_manager.h" |
6 | 6 |
7 #include "base/process_util.h" | 7 #include "base/process_util.h" |
8 #include "content/common/browser_plugin_messages.h" | 8 #include "content/common/browser_plugin_messages.h" |
9 #include "content/common/view_messages.h" | 9 #include "content/common/view_messages.h" |
10 #include "content/renderer/browser_plugin/browser_plugin.h" | 10 #include "content/renderer/browser_plugin/old/browser_plugin.h" |
11 #include "content/renderer/browser_plugin/guest_to_embedder_channel.h" | 11 #include "content/renderer/browser_plugin/old/guest_to_embedder_channel.h" |
12 #include "content/renderer/render_thread_impl.h" | 12 #include "content/renderer/render_thread_impl.h" |
13 #include "content/renderer/render_view_impl.h" | 13 #include "content/renderer/render_view_impl.h" |
14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 BrowserPluginChannelManager::BrowserPluginChannelManager() { | 18 BrowserPluginChannelManager::BrowserPluginChannelManager() { |
19 } | 19 } |
20 | 20 |
21 BrowserPluginChannelManager::~BrowserPluginChannelManager() { | 21 BrowserPluginChannelManager::~BrowserPluginChannelManager() { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 browser_plugin->LoadGuest(guest_process_id, channel_handle); | 135 browser_plugin->LoadGuest(guest_process_id, channel_handle); |
136 } | 136 } |
137 | 137 |
138 void BrowserPluginChannelManager::OnAdvanceFocus(int instance_id, | 138 void BrowserPluginChannelManager::OnAdvanceFocus(int instance_id, |
139 bool reverse) { | 139 bool reverse) { |
140 BrowserPlugin* browser_plugin = BrowserPlugin::FromID(instance_id); | 140 BrowserPlugin* browser_plugin = BrowserPlugin::FromID(instance_id); |
141 browser_plugin->AdvanceFocus(reverse); | 141 browser_plugin->AdvanceFocus(reverse); |
142 } | 142 } |
143 | 143 |
144 } // namespace content | 144 } // namespace content |
OLD | NEW |