Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2301)

Unified Diff: content/renderer/browser_plugin/mock_browser_plugin_manager.h

Issue 11416074: Browser Plugin: Simplified BrowserPluginManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/browser_plugin/mock_browser_plugin_manager.h
diff --git a/content/renderer/browser_plugin/mock_browser_plugin_manager.h b/content/renderer/browser_plugin/mock_browser_plugin_manager.h
index 90be1cdbd5af2f0ae813fcc62657b317fb71be52..46c4578b8d822c86c2ab9e310f7bae5dff4b42bb 100644
--- a/content/renderer/browser_plugin/mock_browser_plugin_manager.h
+++ b/content/renderer/browser_plugin/mock_browser_plugin_manager.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_
-#define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_
+#ifndef CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_MANAGER_H_
+#define CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_MANAGER_H_
#include "content/renderer/browser_plugin/browser_plugin_manager.h"
@@ -15,8 +15,7 @@ namespace content {
class MockBrowserPluginManager : public BrowserPluginManager {
public:
- MockBrowserPluginManager();
- virtual ~MockBrowserPluginManager();
+ MockBrowserPluginManager(RenderViewImpl* render_view);
// BrowserPluginManager implementation.
virtual BrowserPlugin* CreateBrowserPlugin(
@@ -31,12 +30,11 @@ class MockBrowserPluginManager : public BrowserPluginManager {
// Provides access to the messages that have been received by this thread.
IPC::TestSink& sink() { return sink_; }
- // IPC::Sender implementation.
+ // RenderViewObserver override.
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
virtual bool Send(IPC::Message* msg) OVERRIDE;
-
- // RenderProcessObserver override.
- virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
- private:
+ protected:
+ virtual ~MockBrowserPluginManager();
IPC::TestSink sink_;
// The last known good deserializer for sync messages.
@@ -47,4 +45,4 @@ class MockBrowserPluginManager : public BrowserPluginManager {
} // namespace content
-#endif // CONTENT_RENDERER_BROWSER_PLUGIN_TESTS_BROWSER_PLUGIN_MANAGER_IMPL_H_
+#endif // CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698