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 #include "extensions/browser/extension_navigation_throttle.h" | 5 #include "extensions/browser/extension_navigation_throttle.h" |
6 | 6 |
7 #include "components/guest_view/browser/guest_view_base.h" | 7 #include "components/guest_view/browser/guest_view_base.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 #include "content/public/browser/navigation_handle.h" | 9 #include "content/public/browser/navigation_handle.h" |
10 #include "content/public/browser/render_frame_host.h" | 10 #include "content/public/browser/render_frame_host.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 return content::NavigationThrottle::BLOCK_REQUEST; | 153 return content::NavigationThrottle::BLOCK_REQUEST; |
154 | 154 |
155 if (WebAccessibleResourcesInfo::IsResourceWebAccessible(extension, | 155 if (WebAccessibleResourcesInfo::IsResourceWebAccessible(extension, |
156 resource_path)) { | 156 resource_path)) { |
157 return content::NavigationThrottle::PROCEED; | 157 return content::NavigationThrottle::PROCEED; |
158 } | 158 } |
159 | 159 |
160 return content::NavigationThrottle::BLOCK_REQUEST; | 160 return content::NavigationThrottle::BLOCK_REQUEST; |
161 } | 161 } |
162 | 162 |
| 163 const char* ExtensionNavigationThrottle::GetNameForLogging() { |
| 164 return "ExtensionNavigationThrottle"; |
| 165 } |
| 166 |
163 } // namespace extensions | 167 } // namespace extensions |
OLD | NEW |