| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/geolocation/geolocation_permission_context_extensions.h
" | 5 #include "chrome/browser/geolocation/geolocation_permission_context_extensions.h
" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 | 8 |
| 9 #if defined(ENABLE_EXTENSIONS) | 9 #if defined(ENABLE_EXTENSIONS) |
| 10 #include "chrome/browser/content_settings/permission_request_id.h" | 10 #include "chrome/browser/content_settings/permission_request_id.h" |
| 11 #include "chrome/browser/guest_view/web_view/web_view_permission_helper.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 12 #include "extensions/browser/extension_registry.h" | 13 #include "extensions/browser/extension_registry.h" |
| 13 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" | |
| 14 #include "extensions/browser/process_map.h" | 14 #include "extensions/browser/process_map.h" |
| 15 #include "extensions/browser/suggest_permission_util.h" | 15 #include "extensions/browser/suggest_permission_util.h" |
| 16 #include "extensions/browser/view_type_utils.h" | 16 #include "extensions/browser/view_type_utils.h" |
| 17 #include "extensions/common/extension.h" | 17 #include "extensions/common/extension.h" |
| 18 | 18 |
| 19 using extensions::APIPermission; | 19 using extensions::APIPermission; |
| 20 using extensions::ExtensionRegistry; | 20 using extensions::ExtensionRegistry; |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 GeolocationPermissionContextExtensions:: | 23 GeolocationPermissionContextExtensions:: |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 web_contents ? | 94 web_contents ? |
| 95 extensions::WebViewPermissionHelper::FromWebContents(web_contents) | 95 extensions::WebViewPermissionHelper::FromWebContents(web_contents) |
| 96 : NULL; | 96 : NULL; |
| 97 if (web_view_permission_helper) { | 97 if (web_view_permission_helper) { |
| 98 web_view_permission_helper->CancelGeolocationPermissionRequest(bridge_id); | 98 web_view_permission_helper->CancelGeolocationPermissionRequest(bridge_id); |
| 99 return true; | 99 return true; |
| 100 } | 100 } |
| 101 #endif // defined(ENABLE_EXTENSIONS) | 101 #endif // defined(ENABLE_EXTENSIONS) |
| 102 return false; | 102 return false; |
| 103 } | 103 } |
| OLD | NEW |