| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |