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

Side by Side Diff: chrome/browser/background_sync/background_sync_permission_context.h

Issue 2110343002: Reintroduce plumbing for user gesture into permission system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 5 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 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
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_
OLDNEW
« no previous file with comments | « blimp/engine/app/blimp_permission_manager.cc ('k') | chrome/browser/background_sync/background_sync_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698