Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: extensions/browser/extension_navigation_throttle.cc

Issue 2830353003: Tracing for NavigationHandle lifetime and state. (Closed)
Patch Set: Rebase. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/browser/extension_navigation_throttle.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/browser/extension_navigation_throttle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698