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/mock_browser_plugin_manager.h" | 5 #include "content/renderer/browser_plugin/mock_browser_plugin_manager.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "content/common/browser_plugin/browser_plugin_messages.h" | 8 #include "content/common/browser_plugin/browser_plugin_messages.h" |
9 #include "content/renderer/browser_plugin/mock_browser_plugin.h" | 9 #include "content/renderer/browser_plugin/mock_browser_plugin.h" |
10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 MockBrowserPluginManager::MockBrowserPluginManager( | 14 MockBrowserPluginManager::MockBrowserPluginManager( |
15 RenderViewImpl* render_view) | 15 RenderViewImpl* render_view) |
16 : BrowserPluginManager(render_view), | 16 : BrowserPluginManager(render_view), |
17 browser_plugin_instance_id_counter_(0), | 17 browser_plugin_instance_id_counter_(0), |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 } | 70 } |
71 | 71 |
72 bool MockBrowserPluginManager::OnMessageReceived( | 72 bool MockBrowserPluginManager::OnMessageReceived( |
73 const IPC::Message& message) { | 73 const IPC::Message& message) { |
74 // Save the message in the sink. | 74 // Save the message in the sink. |
75 sink_.OnMessageReceived(message); | 75 sink_.OnMessageReceived(message); |
76 return false; | 76 return false; |
77 } | 77 } |
78 | 78 |
79 } // namespace content | 79 } // namespace content |
OLD | NEW |