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

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: Fixed replace computation 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 void DidCancelPopupMenu(); 408 void DidCancelPopupMenu();
409 #endif 409 #endif
410 410
411 // PlzNavigate: Indicates that a navigation is ready to commit and can be 411 // PlzNavigate: Indicates that a navigation is ready to commit and can be
412 // handled by this RenderFrame. 412 // handled by this RenderFrame.
413 void CommitNavigation(ResourceResponse* response, 413 void CommitNavigation(ResourceResponse* response,
414 scoped_ptr<StreamHandle> body, 414 scoped_ptr<StreamHandle> body,
415 const CommonNavigationParams& common_params, 415 const CommonNavigationParams& common_params,
416 const RequestNavigationParams& request_params); 416 const RequestNavigationParams& request_params);
417 417
418 // PlzNavigate
419 // Indicates that a navigation failed and that this RenderFrame should display
420 // an error page.
421 void FailedNavigation(const CommonNavigationParams& common_params,
422 const RequestNavigationParams& request_params,
423 bool has_stale_copy_in_cache,
424 int error_code);
425
418 // Sets up the Mojo connection between this instance and its associated render 426 // Sets up the Mojo connection between this instance and its associated render
419 // frame if it has not yet been set up. 427 // frame if it has not yet been set up.
420 void SetUpMojoIfNeeded(); 428 void SetUpMojoIfNeeded();
421 429
422 // Tears down the browser-side state relating to the Mojo connection between 430 // Tears down the browser-side state relating to the Mojo connection between
423 // this instance and its associated render frame. 431 // this instance and its associated render frame.
424 void InvalidateMojoConnection(); 432 void InvalidateMojoConnection();
425 433
426 // Returns whether the frame is focused. A frame is considered focused when it 434 // Returns whether the frame is focused. A frame is considered focused when it
427 // is the parent chain of the focused frame within the frame tree. In 435 // is the parent chain of the focused frame within the frame tree. In
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 706
699 // NOTE: This must be the last member. 707 // NOTE: This must be the last member.
700 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 708 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
701 709
702 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 710 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
703 }; 711 };
704 712
705 } // namespace content 713 } // namespace content
706 714
707 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 715 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698