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

Side by Side Diff: chrome/browser/plugins/flash_permission_context.h

Issue 2945243002: Permissions: Allow PermissionManager to return more PermissionStatusSources.
Patch Set: Cleanup. Created 3 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_PLUGINS_FLASH_PERMISSION_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_PLUGINS_FLASH_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_PLUGINS_FLASH_PERMISSION_CONTEXT_H_ 6 #define CHROME_BROWSER_PLUGINS_FLASH_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
11 class GURL; 11 class GURL;
12 class PermissionRequestID; 12 class PermissionRequestID;
13 13
14 class FlashPermissionContext : public PermissionContextBase { 14 class FlashPermissionContext : public PermissionContextBase {
15 public: 15 public:
16 explicit FlashPermissionContext(Profile* profile); 16 explicit FlashPermissionContext(Profile* profile);
17 ~FlashPermissionContext() override; 17 ~FlashPermissionContext() override;
18 18
19 private: 19 private:
20 // PermissionContextBase: 20 // PermissionContextBase:
21 ContentSetting GetPermissionStatusInternal( 21 PermissionResult GetPermissionStatusInternal(
22 content::RenderFrameHost* render_frame_host, 22 content::RenderFrameHost* render_frame_host,
23 const GURL& requesting_origin, 23 const GURL& requesting_origin,
24 const GURL& embedding_origin) const override; 24 const GURL& embedding_origin) const override;
25 void UpdateTabContext(const PermissionRequestID& id, 25 void UpdateTabContext(const PermissionRequestID& id,
26 const GURL& requesting_origin, 26 const GURL& requesting_origin,
27 bool allowed) override; 27 bool allowed) override;
28 void UpdateContentSetting(const GURL& requesting_origin, 28 void UpdateContentSetting(const GURL& requesting_origin,
29 const GURL& embedding_origin, 29 const GURL& embedding_origin,
30 ContentSetting content_setting) override; 30 ContentSetting content_setting) override;
31 bool IsRestrictedToSecureOrigins() const override; 31 bool IsRestrictedToSecureOrigins() const override;
32 32
33 DISALLOW_COPY_AND_ASSIGN(FlashPermissionContext); 33 DISALLOW_COPY_AND_ASSIGN(FlashPermissionContext);
34 }; 34 };
35 35
36 #endif // CHROME_BROWSER_PLUGINS_FLASH_PERMISSION_CONTEXT_H_ 36 #endif // CHROME_BROWSER_PLUGINS_FLASH_PERMISSION_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugins/flash_download_interception.cc ('k') | chrome/browser/plugins/flash_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698