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

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

Issue 1726323002: Have Permission{Manager,Service} use Origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clarify and test Origin.empty_. Created 4 years, 9 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 12 matching lines...) Expand all
23 ~BackgroundSyncPermissionContext() override = default; 23 ~BackgroundSyncPermissionContext() override = default;
24 24
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 url::Origin& requesting_origin,
34 const GURL& embedding_origin, 34 const url::Origin& embedding_origin,
35 const BrowserPermissionCallback& callback) override; 35 const BrowserPermissionCallback& callback) override;
36 bool IsRestrictedToSecureOrigins() const override; 36 bool IsRestrictedToSecureOrigins() const override;
37 37
38 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncPermissionContext); 38 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncPermissionContext);
39 }; 39 };
40 40
41 #endif // CHROME_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_PERMISSION_CONTEXT_H_ 41 #endif // CHROME_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_PERMISSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698