Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_PERMISSIONS_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_PERMISSIONS_H_ |
| 6 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_PERMISSIONS_H_ | 6 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_PERMISSIONS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 // |url|. | 42 // |url|. |
| 43 static extensions::PermissionsData::AccessType CanExtensionAccessURL( | 43 static extensions::PermissionsData::AccessType CanExtensionAccessURL( |
| 44 const extensions::InfoMap* extension_info_map, | 44 const extensions::InfoMap* extension_info_map, |
| 45 const std::string& extension_id, | 45 const std::string& extension_id, |
| 46 const GURL& url, | 46 const GURL& url, |
| 47 int tab_id, | 47 int tab_id, |
| 48 bool crosses_incognito, | 48 bool crosses_incognito, |
| 49 HostPermissionsCheck host_permissions_check); | 49 HostPermissionsCheck host_permissions_check); |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 FRIEND_TEST_ALL_PREFIXES(ExtensionWebRequestApiTest, WebRequestPublicSession); | |
| 53 | |
| 54 static bool allow_all_extensions_in_public_sessions_; | |
|
Ivan Šandrk
2016/11/14 20:16:13
Added the runtime bool like this, but I'm unable t
Devlin
2016/11/15 01:19:37
Hmm... I can't think of why that would be - it see
Ivan Šandrk
2016/11/15 13:49:58
Got it working in a bit different way (suggestion
| |
| 55 | |
| 52 DISALLOW_IMPLICIT_CONSTRUCTORS(WebRequestPermissions); | 56 DISALLOW_IMPLICIT_CONSTRUCTORS(WebRequestPermissions); |
| 53 }; | 57 }; |
| 54 | 58 |
| 55 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_PERMISSIONS_H_ | 59 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_PERMISSIONS_H_ |
| OLD | NEW |