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/permissions/permission_request_id.h" |
10 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
11 #include "components/content_settings/core/common/permission_request_id.h" | |
12 #include "extensions/browser/extension_registry.h" | 12 #include "extensions/browser/extension_registry.h" |
13 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.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 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 web_contents ? | 107 web_contents ? |
108 extensions::WebViewPermissionHelper::FromWebContents(web_contents) | 108 extensions::WebViewPermissionHelper::FromWebContents(web_contents) |
109 : NULL; | 109 : NULL; |
110 if (web_view_permission_helper) { | 110 if (web_view_permission_helper) { |
111 web_view_permission_helper->CancelGeolocationPermissionRequest(bridge_id); | 111 web_view_permission_helper->CancelGeolocationPermissionRequest(bridge_id); |
112 return true; | 112 return true; |
113 } | 113 } |
114 #endif // defined(ENABLE_EXTENSIONS) | 114 #endif // defined(ENABLE_EXTENSIONS) |
115 return false; | 115 return false; |
116 } | 116 } |
OLD | NEW |