Chromium Code Reviews| Index: chrome/browser/geolocation/geolocation_permission_context_android.h |
| diff --git a/chrome/browser/geolocation/geolocation_permission_context_android.h b/chrome/browser/geolocation/geolocation_permission_context_android.h |
| index db24bfbe2d1cf1ff7322c05c8ca44ae4725932d5..bd6a55df0509ff5d2028f363e0dccb5a757d4f7d 100644 |
| --- a/chrome/browser/geolocation/geolocation_permission_context_android.h |
| +++ b/chrome/browser/geolocation/geolocation_permission_context_android.h |
| @@ -21,6 +21,7 @@ |
| // |
| // Otherwise the permission is already decided. |
| #include "base/memory/scoped_ptr.h" |
| +#include "base/memory/weak_ptr.h" |
| #include "chrome/browser/geolocation/geolocation_permission_context.h" |
| namespace content { |
| @@ -43,10 +44,16 @@ class GeolocationPermissionContextAndroid |
| // GeolocationPermissionContext: |
| void RequestPermission( |
| content::WebContents* web_contents, |
| - const PermissionRequestID& id, |
| - const GURL& requesting_frame_origin, |
| - bool user_gesture, |
| - const BrowserPermissionCallback& callback) override; |
| + const PermissionRequestID& id, |
| + const GURL& requesting_frame_origin, |
| + bool user_gesture, |
| + const BrowserPermissionCallback& callback) override; |
| + |
| + void HandleUpdateAndroidPermissions(const PermissionRequestID& id, |
| + const GURL& requesting_frame_origin, |
| + const GURL& embedding_origin, |
| + const BrowserPermissionCallback& callback, |
| + bool permissions_updated); |
| // Overrides the LocationSettings object used to determine whether |
| // system and Chrome-wide location permissions are enabled. |
| @@ -54,6 +61,10 @@ class GeolocationPermissionContextAndroid |
| scoped_ptr<LocationSettings> location_settings_; |
| + // Must be the last member, to ensure that it will be |
| + // destroyed first, which will invalidate weak pointers |
|
gone
2015/07/17 17:41:39
nit: add period. wrap at 80.
Ted C
2015/07/17 20:37:18
Done. Silly me for copying blindly from other inf
|
| + base::WeakPtrFactory<GeolocationPermissionContextAndroid> weak_factory_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContextAndroid); |
| }; |