BrowserPlugin: Move CreateGuest to chrome
BUG=364141, 330264
Review URL: https://codereview.chromium.org/261013005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269565 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index fd31c1a..38830c3 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -30,6 +30,7 @@
#endif
namespace base {
+class DictionaryValue;
class TimeTicks;
}
@@ -82,6 +83,7 @@
public:
struct CONTENT_EXPORT CreateParams {
explicit CreateParams(BrowserContext* context);
+ ~CreateParams();
CreateParams(BrowserContext* context, SiteInstance* site);
BrowserContext* browser_context;
@@ -101,6 +103,14 @@
// True if the contents should be initially hidden.
bool initially_hidden;
+ // If this instance ID is non-zero then it indicates that this WebContents
+ // should behave as a guest.
+ int guest_instance_id;
+
+ // TODO(fsamuel): This is temporary. Remove this once all guests are created
+ // from the content embedder.
+ scoped_ptr<base::DictionaryValue> guest_extra_params;
+
// Used to specify the location context which display the new view should
// belong. This can be NULL if not needed.
gfx::NativeView context;