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 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_FACTORY_H_ |
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_FACTORY_H_ | 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_FACTORY_H_ |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 | 13 |
14 struct BrowserPluginHostMsg_CreateGuest_Params; | 14 struct BrowserPluginHostMsg_CreateGuest_Params; |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 class BrowserPluginEmbedder; | 18 class BrowserPluginEmbedder; |
19 class BrowserPluginGuest; | 19 class BrowserPluginGuest; |
20 class RenderViewHost; | 20 class RenderViewHost; |
21 class WebContentsImpl; | 21 class WebContentsImpl; |
22 | 22 |
23 // Factory to create BrowserPlugin embedder and guest. | 23 // Factory to create BrowserPlugin embedder and guest. |
24 class CONTENT_EXPORT BrowserPluginHostFactory { | 24 class CONTENT_EXPORT BrowserPluginHostFactory { |
25 public: | 25 public: |
26 virtual BrowserPluginGuestManager* CreateBrowserPluginGuestManager( | |
27 BrowserContext* context) = 0; | |
28 | |
29 virtual BrowserPluginGuest* CreateBrowserPluginGuest( | 26 virtual BrowserPluginGuest* CreateBrowserPluginGuest( |
30 int instance_id, | 27 int instance_id, |
31 WebContentsImpl* web_contents) = 0; | 28 WebContentsImpl* web_contents) = 0; |
32 | 29 |
33 virtual BrowserPluginEmbedder* CreateBrowserPluginEmbedder( | 30 virtual BrowserPluginEmbedder* CreateBrowserPluginEmbedder( |
34 WebContentsImpl* web_contents) = 0; | 31 WebContentsImpl* web_contents) = 0; |
35 | 32 |
36 protected: | 33 protected: |
37 virtual ~BrowserPluginHostFactory() {} | 34 virtual ~BrowserPluginHostFactory() {} |
38 }; | 35 }; |
39 | 36 |
40 } // namespace content | 37 } // namespace content |
41 | 38 |
42 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_FACTORY_H_ | 39 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_FACTORY_H_ |
OLD | NEW |