Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: chrome/browser/permissions/permission_request_impl.h

Issue 2184823007: Add a feature which, when enabled, blocks permissions after X prompt dismissals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nits Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_IMPL_H_ 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_IMPL_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_IMPL_H_ 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_IMPL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/permissions/permission_request.h" 10 #include "chrome/browser/permissions/permission_request.h"
11 #include "chrome/browser/permissions/permission_request_id.h" 11 #include "chrome/browser/permissions/permission_request_id.h"
12 #include "components/content_settings/core/common/content_settings.h" 12 #include "components/content_settings/core/common/content_settings.h"
13 #include "content/public/browser/permission_type.h" 13 #include "content/public/browser/permission_type.h"
14 14
15 class GURL; 15 class GURL;
16 class PermissionContextBase;
17 class Profile; 16 class Profile;
18 17
19 // Default implementation of PermissionRequest, it is assumed that the 18 // Default implementation of PermissionRequest, it is assumed that the
20 // caller owns it and that it can be deleted once the |delete_callback| 19 // caller owns it and that it can be deleted once the |delete_callback|
21 // is executed. 20 // is executed.
22 class PermissionRequestImpl : public PermissionRequest { 21 class PermissionRequestImpl : public PermissionRequest {
23 public: 22 public:
24 using PermissionDecidedCallback = base::Callback<void(bool, ContentSetting)>; 23 using PermissionDecidedCallback = base::Callback<void(bool, ContentSetting)>;
25 24
26 PermissionRequestImpl( 25 PermissionRequestImpl(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Called when the request is no longer in use so it can be deleted by the 61 // Called when the request is no longer in use so it can be deleted by the
63 // caller. 62 // caller.
64 const base::Closure delete_callback_; 63 const base::Closure delete_callback_;
65 bool is_finished_; 64 bool is_finished_;
66 bool action_taken_; 65 bool action_taken_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(PermissionRequestImpl); 67 DISALLOW_COPY_AND_ASSIGN(PermissionRequestImpl);
69 }; 68 };
70 69
71 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_IMPL_H_ 70 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698