OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_BACKGROUND_SYNC_BACKGROUND_SYNC_PERMISSION_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_PERMISSION_CONTEXT_H_ |
6 #define CHROME_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_PERMISSION_CONTEXT_H_ | 6 #define CHROME_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_PERMISSION_CONTEXT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/permissions/permission_context_base.h" | 9 #include "chrome/browser/permissions/permission_context_base.h" |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 // PermissionContextBase: | 25 // PermissionContextBase: |
26 void CancelPermissionRequest(content::WebContents* web_contents, | 26 void CancelPermissionRequest(content::WebContents* web_contents, |
27 const PermissionRequestID& id) override; | 27 const PermissionRequestID& id) override; |
28 | 28 |
29 private: | 29 private: |
30 // PermissionContextBase: | 30 // PermissionContextBase: |
31 void DecidePermission(content::WebContents* web_contents, | 31 void DecidePermission(content::WebContents* web_contents, |
32 const PermissionRequestID& id, | 32 const PermissionRequestID& id, |
33 const GURL& requesting_origin, | 33 const GURL& requesting_origin, |
34 const GURL& embedding_origin, | 34 const GURL& embedding_origin, |
| 35 bool user_gesture, |
35 const BrowserPermissionCallback& callback) override; | 36 const BrowserPermissionCallback& callback) override; |
36 bool IsRestrictedToSecureOrigins() const override; | 37 bool IsRestrictedToSecureOrigins() const override; |
37 | 38 |
38 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncPermissionContext); | 39 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncPermissionContext); |
39 }; | 40 }; |
40 | 41 |
41 #endif // CHROME_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_PERMISSION_CONTEXT_H_ | 42 #endif // CHROME_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_PERMISSION_CONTEXT_H_ |
OLD | NEW |