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

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

Issue 958083002: PlzNavigate: Show error pages when the navigation failed before commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@support-data-urls
Patch Set: Updated test Created 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 void DidCancelPopupMenu(); 415 void DidCancelPopupMenu();
416 #endif 416 #endif
417 417
418 // PlzNavigate: Indicates that a navigation is ready to commit and can be 418 // PlzNavigate: Indicates that a navigation is ready to commit and can be
419 // handled by this RenderFrame. 419 // handled by this RenderFrame.
420 void CommitNavigation(ResourceResponse* response, 420 void CommitNavigation(ResourceResponse* response,
421 scoped_ptr<StreamHandle> body, 421 scoped_ptr<StreamHandle> body,
422 const CommonNavigationParams& common_params, 422 const CommonNavigationParams& common_params,
423 const RequestNavigationParams& request_params); 423 const RequestNavigationParams& request_params);
424 424
425 // PlzNavigate
426 // Indicates that a navigation failed and that this RenderFrame should display
427 // an error page.
428 void FailedNavigation(const CommonNavigationParams& common_params,
429 const RequestNavigationParams& request_params,
430 bool has_stale_copy_in_cache,
431 int error_code);
432
425 // Sets up the Mojo connection between this instance and its associated render 433 // Sets up the Mojo connection between this instance and its associated render
426 // frame if it has not yet been set up. 434 // frame if it has not yet been set up.
427 void SetUpMojoIfNeeded(); 435 void SetUpMojoIfNeeded();
428 436
429 // Tears down the browser-side state relating to the Mojo connection between 437 // Tears down the browser-side state relating to the Mojo connection between
430 // this instance and its associated render frame. 438 // this instance and its associated render frame.
431 void InvalidateMojoConnection(); 439 void InvalidateMojoConnection();
432 440
433 // Returns whether the frame is focused. A frame is considered focused when it 441 // Returns whether the frame is focused. A frame is considered focused when it
434 // is the parent chain of the focused frame within the frame tree. In 442 // is the parent chain of the focused frame within the frame tree. In
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 719
712 // NOTE: This must be the last member. 720 // NOTE: This must be the last member.
713 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 721 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
714 722
715 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 723 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
716 }; 724 };
717 725
718 } // namespace content 726 } // namespace content
719 727
720 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 728 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigator_impl.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698