Upstream version 10.38.222.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / api / guest_view / guest_view_internal_api.h
index f21f0c0..7fd1f3c 100644 (file)
@@ -9,19 +9,34 @@
 
 namespace extensions {
 
-class GuestViewInternalAllocateInstanceIdFunction
-    : public AsyncExtensionFunction {
+class GuestViewInternalCreateGuestFunction : public AsyncExtensionFunction {
  public:
-  DECLARE_EXTENSION_FUNCTION("guestViewInternal.allocateInstanceId",
-                             GUESTVIEWINTERNAL_ALLOCATEINSTANCEID);
-  GuestViewInternalAllocateInstanceIdFunction();
+  DECLARE_EXTENSION_FUNCTION("guestViewInternal.createGuest",
+                             GUESTVIEWINTERNAL_CREATEGUEST);
+  GuestViewInternalCreateGuestFunction();
 
  protected:
-  virtual ~GuestViewInternalAllocateInstanceIdFunction() {}
+  virtual ~GuestViewInternalCreateGuestFunction() {}
   virtual bool RunAsync() OVERRIDE FINAL;
 
  private:
-  DISALLOW_COPY_AND_ASSIGN(GuestViewInternalAllocateInstanceIdFunction);
+  void CreateGuestCallback(content::WebContents* guest_web_contents);
+  DISALLOW_COPY_AND_ASSIGN(GuestViewInternalCreateGuestFunction);
+};
+
+class GuestViewInternalSetAutoSizeFunction : public AsyncExtensionFunction {
+ public:
+  DECLARE_EXTENSION_FUNCTION("guestViewInternal.setAutoSize",
+                             GUESTVIEWINTERNAL_SETAUTOSIZE);
+
+  GuestViewInternalSetAutoSizeFunction();
+
+ protected:
+  virtual ~GuestViewInternalSetAutoSizeFunction();
+  virtual bool RunAsync() OVERRIDE FINAL;
+
+ private:
+  DISALLOW_COPY_AND_ASSIGN(GuestViewInternalSetAutoSizeFunction);
 };
 
 }  // namespace extensions