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

Side by Side Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 2528813002: Fix Self-Referencing OOPIF Infinite Loop (Closed)
Patch Set: add fix to find and renderframe tests Created 4 years 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
7 7
8 #include "content/public/browser/navigation_handle.h" 8 #include "content/public/browser/navigation_handle.h"
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 void WillStartRequest( 216 void WillStartRequest(
217 const std::string& method, 217 const std::string& method,
218 scoped_refptr<content::ResourceRequestBodyImpl> resource_request_body, 218 scoped_refptr<content::ResourceRequestBodyImpl> resource_request_body,
219 const Referrer& sanitized_referrer, 219 const Referrer& sanitized_referrer,
220 bool has_user_gesture, 220 bool has_user_gesture,
221 ui::PageTransition transition, 221 ui::PageTransition transition,
222 bool is_external_protocol, 222 bool is_external_protocol,
223 RequestContextType request_context_type, 223 RequestContextType request_context_type,
224 const ThrottleChecksFinishedCallback& callback); 224 const ThrottleChecksFinishedCallback& callback);
225 225
226 // Prevents navigation to a page that is already referenced more than once in
227 // its ancestors
alexmos 2016/12/28 00:25:59 nit: end with period.
alexmos 2016/12/28 00:25:59 This comment isn't entirely accurate, as it only t
davidsac (gone - try alexmos) 2017/01/06 00:44:57 Done.
davidsac (gone - try alexmos) 2017/01/06 00:44:57 Done.
228 bool isURLBlocked();
alexmos 2016/12/28 00:25:59 Let's use a name that conveys what specific check
alexmos 2016/12/28 00:25:59 Let's not insert this in between WillStartRequest
davidsac (gone - try alexmos) 2017/01/06 00:44:57 Done.
davidsac (gone - try alexmos) 2017/01/06 00:44:57 Done.
229
226 // Called when the URLRequest will be redirected in the network stack. 230 // Called when the URLRequest will be redirected in the network stack.
227 // |callback| will be called when all throttles check have completed. This 231 // |callback| will be called when all throttles check have completed. This
228 // will allow the caller to cancel the navigation or let it proceed. 232 // will allow the caller to cancel the navigation or let it proceed.
229 // This will also inform the delegate that the request was redirected. 233 // This will also inform the delegate that the request was redirected.
230 void WillRedirectRequest( 234 void WillRedirectRequest(
231 const GURL& new_url, 235 const GURL& new_url,
232 const std::string& new_method, 236 const std::string& new_method,
233 const GURL& new_referrer_url, 237 const GURL& new_referrer_url,
234 bool new_is_external_protocol, 238 bool new_is_external_protocol,
235 scoped_refptr<net::HttpResponseHeaders> response_headers, 239 scoped_refptr<net::HttpResponseHeaders> response_headers,
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 std::string searchable_form_encoding_; 448 std::string searchable_form_encoding_;
445 449
446 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; 450 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_;
447 451
448 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 452 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
449 }; 453 };
450 454
451 } // namespace content 455 } // namespace content
452 456
453 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 457 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698