Revert of Class for allocating a chunk of memory for RenderPass (patchset #31 id...
[chromium-blink-merge.git] / content / renderer / browser_plugin / browser_plugin_manager_impl.h
blob40e6a8225d5ddfdf8ca83580734a1ee1811753fd
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_
8 #include <map>
10 #include "content/renderer/browser_plugin/browser_plugin_manager.h"
11 #include "ui/gfx/size.h"
13 namespace gfx {
14 class Point;
17 namespace content {
19 class BrowserPluginManagerImpl : public BrowserPluginManager {
20 public:
21 explicit BrowserPluginManagerImpl(RenderViewImpl* render_view);
23 // BrowserPluginManager implementation.
24 virtual BrowserPlugin* CreateBrowserPlugin(
25 RenderViewImpl* render_view,
26 blink::WebFrame* frame,
27 scoped_ptr<BrowserPluginDelegate> delegate) OVERRIDE;
29 // IPC::Sender implementation.
30 virtual bool Send(IPC::Message* msg) OVERRIDE;
32 // RenderViewObserver override. Call on render thread.
33 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
34 virtual void DidCommitCompositorFrame() OVERRIDE;
36 private:
37 virtual ~BrowserPluginManagerImpl();
39 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManagerImpl);
42 } // namespace content
44 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_