| 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_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; |
| 12 class PermissionRequestID; |
| 13 |
| 11 class FlashPermissionContext : public PermissionContextBase { | 14 class FlashPermissionContext : public PermissionContextBase { |
| 12 public: | 15 public: |
| 13 explicit FlashPermissionContext(Profile* profile); | 16 explicit FlashPermissionContext(Profile* profile); |
| 14 ~FlashPermissionContext() override; | 17 ~FlashPermissionContext() override; |
| 15 | 18 |
| 16 private: | 19 private: |
| 17 // PermissionContextBase: | 20 // PermissionContextBase: |
| 21 ContentSetting GetPermissionStatus( |
| 22 const GURL& requesting_origin, |
| 23 const GURL& embedding_origin) const override; |
| 24 void UpdateTabContext(const PermissionRequestID& id, |
| 25 const GURL& requesting_origin, |
| 26 bool allowed) override; |
| 18 bool IsRestrictedToSecureOrigins() const override; | 27 bool IsRestrictedToSecureOrigins() const override; |
| 19 | 28 |
| 20 DISALLOW_COPY_AND_ASSIGN(FlashPermissionContext); | 29 DISALLOW_COPY_AND_ASSIGN(FlashPermissionContext); |
| 21 }; | 30 }; |
| 22 | 31 |
| 23 #endif // CHROME_BROWSER_PLUGINS_FLASH_PERMISSION_CONTEXT_H_ | 32 #endif // CHROME_BROWSER_PLUGINS_FLASH_PERMISSION_CONTEXT_H_ |
| OLD | NEW |