OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_ACTIVE_TAB_PERMISSION_GRANTER_DELEGAT
E_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_ACTIVE_TAB_PERMISSION_GRANTER_DELEGAT
E_CHROMEOS_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "chrome/browser/extensions/active_tab_permission_granter.h" |
| 10 |
| 11 namespace content { |
| 12 class WebContents; |
| 13 } |
| 14 |
| 15 namespace extensions { |
| 16 class Extension; |
| 17 |
| 18 // In Public Sessions, apps and extensions are force-installed by admin policy |
| 19 // so the user does not get a chance to review the permissions for these apps. |
| 20 // This is not acceptable from a security standpoint, so we show a permission |
| 21 // prompt the first time an extension tries to use activeTab permission (unless |
| 22 // the extension is whitelisted). |
| 23 class ActiveTabPermissionGranterDelegateChromeOS |
| 24 : public ActiveTabPermissionGranter::Delegate { |
| 25 public: |
| 26 ActiveTabPermissionGranterDelegateChromeOS(); |
| 27 ~ActiveTabPermissionGranterDelegateChromeOS() override; |
| 28 |
| 29 // ActiveTabPermissionGranter::Delegate |
| 30 bool ActiveTabPermissionGranted(const Extension* extension, |
| 31 content::WebContents* web_contents) override; |
| 32 |
| 33 private: |
| 34 DISALLOW_COPY_AND_ASSIGN(ActiveTabPermissionGranterDelegateChromeOS); |
| 35 }; |
| 36 |
| 37 } // namespace extensions |
| 38 |
| 39 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_ACTIVE_TAB_PERMISSION_GRANTER_DELE
GATE_CHROMEOS_H_ |
OLD | NEW |