OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_FACTORY_H_ | |
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_FACTORY_H_ | |
7 | |
8 #include "base/base_export.h" | |
9 #include "base/basictypes.h" | |
10 #include "base/compiler_specific.h" | |
11 #include "base/string16.h" | |
12 #include "content/common/content_export.h" | |
13 | |
14 class WebContentsImpl; | |
15 | |
16 namespace content { | |
17 | |
18 class BrowserPluginEmbedder; | |
19 class BrowserPluginGuest; | |
20 class RenderViewHost; | |
21 | |
22 // Factory to create BrowserPlugin embedder and guest. | |
23 class CONTENT_EXPORT BrowserPluginHostFactory { | |
24 public: | |
25 virtual BrowserPluginGuest* CreateBrowserPluginGuest( | |
26 int instance_id, | |
27 WebContentsImpl* web_contents, | |
28 RenderViewHost* render_view_host) = 0; | |
29 | |
30 virtual BrowserPluginEmbedder* CreateBrowserPluginEmbedder( | |
31 WebContentsImpl* web_contents, | |
32 RenderViewHost* render_view_host) = 0; | |
awong
2012/09/06 19:55:26
Nice catch on the virtual destructor :)
nit: add
lazyboy
2012/09/07 19:33:19
Need to make it protected and need providing blank
| |
33 private: | |
34 virtual ~BrowserPluginHostFactory(); | |
35 }; | |
36 | |
37 } // namespace content | |
38 | |
39 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_FACTORY_H_ | |
OLD | NEW |