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

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

Powered by Google App Engine
This is Rietveld 408576698