IndexedDBFactory now ForceCloses databases.
[chromium-blink-merge.git] / content / browser / browser_plugin / browser_plugin_host_factory.h
blob9bfc1e2d740dd52aa14a55432068e8187cf20999
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_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_FACTORY_H_
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_FACTORY_H_
8 #include "base/base_export.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "base/strings/string16.h"
12 #include "content/common/content_export.h"
14 struct BrowserPluginHostMsg_CreateGuest_Params;
16 namespace content {
18 class BrowserPluginEmbedder;
19 class BrowserPluginGuest;
20 class RenderViewHost;
21 class WebContentsImpl;
23 // Factory to create BrowserPlugin embedder and guest.
24 class CONTENT_EXPORT BrowserPluginHostFactory {
25 public:
26 virtual BrowserPluginGuestManager* CreateBrowserPluginGuestManager() = 0;
28 virtual BrowserPluginGuest* CreateBrowserPluginGuest(
29 int instance_id,
30 WebContentsImpl* web_contents) = 0;
32 virtual BrowserPluginEmbedder* CreateBrowserPluginEmbedder(
33 WebContentsImpl* web_contents) = 0;
35 protected:
36 virtual ~BrowserPluginHostFactory() {}
39 } // namespace content
41 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_FACTORY_H_