Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / api / capture_web_contents_function.h
index 5df31b8..0a1c741 100644 (file)
@@ -27,14 +27,13 @@ class CaptureWebContentsFunction : public ChromeAsyncExtensionFunction {
 
   // ExtensionFunction implementation.
   virtual bool HasPermission() OVERRIDE;
-  virtual bool RunImpl() OVERRIDE;
+  virtual bool RunAsync() OVERRIDE;
 
   virtual bool IsScreenshotEnabled() = 0;
   virtual content::WebContents* GetWebContentsForID(int context_id) = 0;
 
   enum FailureReason {
     FAILURE_REASON_UNKNOWN,
-    FAILURE_REASON_CONTENT_NOT_FOUND,
     FAILURE_REASON_ENCODING_FAILED,
     FAILURE_REASON_VIEW_INVISIBLE
   };
@@ -44,7 +43,6 @@ class CaptureWebContentsFunction : public ChromeAsyncExtensionFunction {
   typedef api::types::ImageDetails ImageDetails;
 
   void CopyFromBackingStoreComplete(bool succeed, const SkBitmap& bitmap);
-  void GetSnapshotFromRendererComplete(bool succeeded, const SkBitmap& bitmap);
   void OnCaptureSuccess(const SkBitmap& bitmap);
 
   // |context_id_| is the ID used to find the relevant WebContents. In the
@@ -53,10 +51,10 @@ class CaptureWebContentsFunction : public ChromeAsyncExtensionFunction {
   // the guest.
   int context_id_;
 
-  // The format (JPEG vs PNG) of the resulting image.  Set in RunImpl().
+  // The format (JPEG vs PNG) of the resulting image.  Set in RunAsync().
   ImageDetails::Format image_format_;
 
-  // Quality setting to use when encoding jpegs.  Set in RunImpl().
+  // Quality setting to use when encoding jpegs.  Set in RunAsync().
   int image_quality_;
 
   DISALLOW_COPY_AND_ASSIGN(CaptureWebContentsFunction);