diff options
Diffstat (limited to 'chrome/browser/content_settings/permission_bubble_request_impl.h')
-rw-r--r-- | chrome/browser/content_settings/permission_bubble_request_impl.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/content_settings/permission_bubble_request_impl.h b/chrome/browser/content_settings/permission_bubble_request_impl.h index fe73c64..89a9d60 100644 --- a/chrome/browser/content_settings/permission_bubble_request_impl.h +++ b/chrome/browser/content_settings/permission_bubble_request_impl.h @@ -18,7 +18,7 @@ class PermissionContextBase; // caller owns it and that it can be deleted once the |delete_callback| // is executed. class PermissionBubbleRequestImpl : public PermissionBubbleRequest { - public: + public: typedef base::Callback<void(bool persist_permission, bool grant_permission)> PermissionDecidedCallback; @@ -41,11 +41,17 @@ class PermissionBubbleRequestImpl : public PermissionBubbleRequest { // TODO(miguelg) Change this method to GetOrigin() virtual GURL GetRequestingHostname() const OVERRIDE; + + // Remember to call RegisterActionTaken for these methods if you are + // overriding them. virtual void PermissionGranted() OVERRIDE; virtual void PermissionDenied() OVERRIDE; virtual void Cancelled() OVERRIDE; virtual void RequestFinished() OVERRIDE; + protected: + void RegisterActionTaken() { action_taken_ = true; } + private: GURL request_origin_; bool user_gesture_; @@ -59,6 +65,7 @@ class PermissionBubbleRequestImpl : public PermissionBubbleRequest { // the caller. const base::Closure delete_callback_; bool is_finished_; + bool action_taken_; DISALLOW_COPY_AND_ASSIGN(PermissionBubbleRequestImpl); }; |