Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / browser / runtime_geolocation_permission_context.h
index eea0376..a73e27c 100644 (file)
@@ -23,10 +23,12 @@ class RuntimeGeolocationPermissionContext
  public:
   // content::GeolocationPermissionContext implementation.
   virtual void RequestGeolocationPermission(
-    content::WebContents* web_contents,
-    const GURL& requesting_frame,
-    base::Callback<void(bool)> result_callback,
-    base::Closure* cancel_callback);
+      content::WebContents* web_contents,
+      const GURL& requesting_frame,
+      base::Callback<void(bool)> result_callback);
+  virtual void CancelGeolocationPermissionRequest(
+      content::WebContents* web_contents,
+      const GURL& requesting_frame);
 
  protected:
   virtual ~RuntimeGeolocationPermissionContext();
@@ -34,10 +36,13 @@ class RuntimeGeolocationPermissionContext
 
  private:
   void RequestGeolocationPermissionOnUIThread(
-    content::WebContents* web_contents,
-    const GURL& requesting_frame,
-    base::Callback<void(bool)> result_callback,
-    base::Closure* cancel_callback);
+      content::WebContents* web_contents,
+      const GURL& requesting_frame,
+      base::Callback<void(bool)> result_callback);
+
+  void CancelGeolocationPermissionRequestOnUIThread(
+      content::WebContents* web_contents,
+      const GURL& requesting_frame);
 };
 
 }  // namespace xwalk